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.toHiveKey);
  if (raw == null) {
    Logs().w(
        'Tried to update inbound group session indexes of a session which was not found in the database!');
    return;
  }
  raw['indexes'] = indexes;
  await _inboundGroupSessionsBox.put(sessionId.toHiveKey, raw);
  return;
}