storeOutboundGroupSession method

Future<void> storeOutboundGroupSession(
  1. String roomId,
  2. OutboundGroupSession sess
)

Store an outbound group session in the database

Implementation

Future<void> storeOutboundGroupSession(
    String roomId, OutboundGroupSession sess) async {
  final userID = client.userID;
  if (userID == null) return;
  await client.database?.storeOutboundGroupSession(
      roomId,
      sess.outboundGroupSession!.pickle(userID),
      json.encode(sess.devices),
      sess.creationTime.millisecondsSinceEpoch);
}