// WTOffline: while the debriefing of a settled LocalMP battle is gathered, nestdb wto.settled names // the battle's room (written by report-local-battle-settlement). The client is in no matching // room, so is_user_log_for_current_room cannot match that room's logs; match them by room id. function isLogOfCurrentRoom(blk, idx) { let settledRoomId = require("nestdb").ndbTryRead(["wto", "settled"])?.roomId return settledRoomId != null ? blk?.roomId == settledRoomId : is_user_log_for_current_room(idx) } function isUserlogVisible(blk, filter, idx) {