getOlmSessionsFromDatabase method

Future<List<OlmSession>> getOlmSessionsFromDatabase(
  1. String senderKey
)

Implementation

Future<List<OlmSession>> getOlmSessionsFromDatabase(String senderKey) async {
  final olmSessions =
      await encryption.olmDatabase?.getOlmSessions(senderKey, client.userID!);
  return olmSessions?.where((sess) => sess.isValid).toList() ?? [];
}