setRoomPrevBatch method

  1. @override
Future<void> setRoomPrevBatch(
  1. String prevBatch,
  2. String roomId,
  3. Client client
)
override

Implementation

@override
Future<void> setRoomPrevBatch(
    String prevBatch, String roomId, Client client) async {
  final raw = await _roomsBox.get(roomId);
  if (raw == null) return;
  final room = Room.fromJson(copyMap(raw), client);
  room.prev_batch = prevBatch;
  await _roomsBox.put(roomId, room.toJson());
  return;
}