markInboundGroupSessionAsUploaded method

  1. @override
Future<void> markInboundGroupSessionAsUploaded(
  1. String roomId,
  2. String sessionId
)
override

Implementation

@override
Future<void> markInboundGroupSessionAsUploaded(
    String roomId, String sessionId) async {
  final raw = await _inboundGroupSessionsBox.get(sessionId.toHiveKey);
  if (raw == null) {
    Logs().w(
        'Tried to mark inbound group session as uploaded which was not found in the database!');
    return;
  }
  raw['uploaded'] = true;
  await _inboundGroupSessionsBox.put(sessionId.toHiveKey, raw);
  return;
}