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,8 +250,9 @@ class Bot:
# message_callback RoomMessageText event
async def message_callback(self, room: MatrixRoom, event: RoomMessageText) -> None:
if room.room_id not in self.whitelist_room_id:
return
if self.whitelist_room_id is not None:
if room.room_id not in self.whitelist_room_id:
return
room_id = room.room_id
# reply event_id