Skip to content

Commit

Permalink
workflow dm update
Browse files Browse the repository at this point in the history
  • Loading branch information
f1delius committed Apr 30, 2024
1 parent 510b37c commit c6770df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ async def message_callback(self, room: MatrixRoom, event: RoomMessageText) -> No
thread_event_id = thread_id
else:
thread_event_id = reply_to_event_id
dm_tag = room.is_group and not self.workflow
dm_tag = room.is_group and (not self.workflow or self.user_id in room.power_levels.users)
if self.user_id != event.sender and (tagged or dm_tag):
if self.owner_id != sender_id and self.msg_limit[sender_id] >= 10:
await send_room_message(
Expand Down

0 comments on commit c6770df

Please sign in to comment.