getAllInboundGroupSessions method

  1. @override
Future<List<StoredInboundGroupSession>> getAllInboundGroupSessions()
override

Implementation

@override
Future<List<StoredInboundGroupSession>> getAllInboundGroupSessions() async {
  final rawSessions = await Future.wait(_inboundGroupSessionsBox.keys
      .map((key) => _inboundGroupSessionsBox.get(key)));
  return rawSessions
      .map((raw) => StoredInboundGroupSession.fromJson(convertToJson(raw)))
      .toList();
}