updateInboundGroupSessionAllowedAtIndex method

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

Implementation

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