updateInboundGroupSessionIndexes method

  1. @override
Future<void> updateInboundGroupSessionIndexes(
  1. String indexes,
  2. String roomId,
  3. String sessionId
)
override

Implementation

@override
Future<void> updateInboundGroupSessionIndexes(
    String indexes, String roomId, String sessionId) async {
  final raw = await _inboundGroupSessionsBox.get(sessionId);
  if (raw == null) {
    Logs().w(
        'Tried to update inbound group session indexes of a session which was not found in the database!');
    return;
  }
  final json = copyMap(raw);
  json['indexes'] = indexes;
  await _inboundGroupSessionsBox.put(sessionId, json);
  return;
}