Room? getRoomByAlias(String alias) { for (final room in rooms) { if (room.canonicalAlias == alias) return room; } return null; }