initializeInbox method

Future<void> initializeInbox()

Initialize the inbox service. Call after setProfileId(). Fetches the first page of messages and the unread count.

Implementation

Future<void> initializeInbox() async {
  if (!_config.enableInbox) return;

  await InboxService.instance.initialize(client: this);

  await InboxService.instance.refreshIfStale();
}