Skip to content

Commit

Permalink
Fix runtime error
Browse files Browse the repository at this point in the history
  • Loading branch information
hibobmaster committed Jul 7, 2024
1 parent 5f9fb32 commit f568c0b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,9 @@ async def close(self, task: asyncio.Task) -> None:

# 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
Expand Down

0 comments on commit f568c0b

Please sign in to comment.