getOlmSessionsForDevices method

  1. @override
Future<List<OlmSession>> getOlmSessionsForDevices(
  1. List<String> identityKeys,
  2. String userId
)
override

Implementation

@override
Future<List<OlmSession>> getOlmSessionsForDevices(
    List<String> identityKeys, String userId) async {
  final sessions = await Future.wait(
      identityKeys.map((identityKey) => getOlmSessions(identityKey, userId)));
  return <OlmSession>[for (final sublist in sessions) ...sublist];
}