storeInboundGroupSession method

  1. @override
Future<void> storeInboundGroupSession(
  1. String roomId,
  2. String sessionId,
  3. String pickle,
  4. String content,
  5. String indexes,
  6. String allowedAtIndex,
  7. String senderKey,
  8. String senderClaimedKey,
)
override

Implementation

@override
Future<void> storeInboundGroupSession(
    String roomId,
    String sessionId,
    String pickle,
    String content,
    String indexes,
    String allowedAtIndex,
    String senderKey,
    String senderClaimedKey) async {
  final json = StoredInboundGroupSession(
    roomId: roomId,
    sessionId: sessionId,
    pickle: pickle,
    content: content,
    indexes: indexes,
    allowedAtIndex: allowedAtIndex,
    senderKey: senderKey,
    senderClaimedKeys: senderClaimedKey,
  ).toJson();
  await _inboundGroupSessionsBox.put(
    sessionId,
    json,
  );
  // Mark this session as needing upload too
  await _inboundGroupSessionsUploadQueueBox.put(sessionId, roomId);
  return;
}