Fix runtime error

This commit is contained in:
hibobmaster 2024-07-07 18:50:16 +08:00
parent 5f9fb321fb
commit f568c0bc1a
No known key found for this signature in database

View File

@ -250,6 +250,7 @@ class Bot:
# message_callback RoomMessageText event
async def message_callback(self, room: MatrixRoom, event: RoomMessageText) -> None:
if self.whitelist_room_id is not None:
if room.room_id not in self.whitelist_room_id:
return
room_id = room.room_id