getArchiveRoomFromCache method

ArchivedRoom? getArchiveRoomFromCache(
  1. String roomId
)

Return an archive room containing the room and the timeline for a specific archived room.

Implementation

ArchivedRoom? getArchiveRoomFromCache(String roomId) {
  for (var i = 0; i < _archivedRooms.length; i++) {
    final archive = _archivedRooms[i];
    if (archive.room.id == roomId) return archive;
  }
  return null;
}