canMessageByInboxId method

  1. @override
Future<bool> canMessageByInboxId(
  1. String inboxId
)
override

Implementation

@override
Future<bool> canMessageByInboxId(String inboxId) async {
  await _ensureInitialized();
  final states = await rust_groups.inboxStatesForInboxIds(
    inboxIds: [inboxId],
    refreshFromNetwork: true,
  );
  if (states.isEmpty) return false;
  return states.first.installations.isNotEmpty;
}