getOlmSessions method
Implementation
@override
Future<List<OlmSession>> getOlmSessions(
String identityKey, String userId) async {
final rawSessions =
await _olmSessionsBox.get(identityKey.toHiveKey) as Map?;
if (rawSessions == null || rawSessions.isEmpty) return <OlmSession>[];
return rawSessions.values
.map((json) => OlmSession.fromJson(convertToJson(json), userId))
.toList();
}