getInboundGroupSessionsToUpload method

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

Implementation

@override
Future<List<StoredInboundGroupSession>>
    getInboundGroupSessionsToUpload() async {
  final sessions = (await _inboundGroupSessionsBox.getAllValues())
      .values
      .where((rawSession) => rawSession['uploaded'] == false)
      .take(50)
      .map(
        (json) => StoredInboundGroupSession.fromJson(
          copyMap(json),
        ),
      )
      .toList();
  return sessions;
}