inboxStatesForInboxIds method
Implementation
@override
Future<List<Map<String, dynamic>>> inboxStatesForInboxIds(
List<String> inboxIds,
{bool refreshFromNetwork = true}) async {
await _ensureInitialized();
final states = await rust_groups.inboxStatesForInboxIds(
inboxIds: inboxIds,
refreshFromNetwork: refreshFromNetwork,
);
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();
}