URJSHBMWTVAVZLQIR4BMV2S3OBG6TKMIGQYHJGGONVO7EDIZS24QC
if idx := self.find_idx_by_id(room_id) {
self.rooms.delete(idx)
println('rooms.delete() $room_id')
} else {
println('rooms.delete() $room_id $err')
}
}
pub fn (mut self Rooms) find_idx_by_id(room_id string) ?int {
for idx, room in self.rooms {
if room.id == room_id {
return idx
}
}
return error('not found')