staticInboxStatesForInboxIds method

  1. @override
Future<List<Map<String, dynamic>>> staticInboxStatesForInboxIds(
  1. List<String> inboxIds
)
override

Implementation

@override
Future<List<Map<String, dynamic>>> staticInboxStatesForInboxIds(
    List<String> inboxIds) async {
  await _ensureInitialized();
  final states = await rust_signing.staticInboxStatesForInboxIds(
    inboxIds: inboxIds,
  );
  return states
      .map((state) => <String, dynamic>{
            'inboxId': state.inboxId,
            'identities': state.identities
                .map((i) => {
                      'identifier': i.identifier,
                      'kind': i.kind,
                    })
                .toList(),
            'installations': state.installations
                .map((i) => {
                      'id': i.id,
                      'createdAt': i.createdAt,
                    })
                .toList(),
            'recoveryIdentity': {
              'identifier': state.recoveryIdentity.identifier,
              'kind': state.recoveryIdentity.kind,
            },
          })
      .toList();
}