From 9b3d4d012d5f497b374c93cbc1552eb320197290 Mon Sep 17 00:00:00 2001 From: HarHarLinks <2803622+HarHarLinks@users.noreply.github.com> Date: Sat, 6 Jan 2024 17:46:30 +0100 Subject: [PATCH] fix room m.mention when firing --- matrix_reminder_bot/reminder.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/matrix_reminder_bot/reminder.py b/matrix_reminder_bot/reminder.py index e362f44..b77b3c0 100644 --- a/matrix_reminder_bot/reminder.py +++ b/matrix_reminder_bot/reminder.py @@ -160,8 +160,8 @@ async def _fire_alarm(self): self.room_id, message, notice=False, - mentions_user_ids=[self.target_user] if self.has_target() else [], - mentions_room=self.has_target(), + mentions_user_ids=[self.target_user] if self.has_target() else None, + mentions_room=not self.has_target(), ) def cancel(self, cancel_alarm: bool = True):