From b1c75d326835c774da116700dad79de8a6c1709f Mon Sep 17 00:00:00 2001 From: Panoramic Date: Tue, 11 Jun 2024 12:17:39 +0300 Subject: [PATCH] Don't react to decryption failures, prevents spamming old messages --- vetting_bot/callbacks.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/vetting_bot/callbacks.py b/vetting_bot/callbacks.py index 7890718..e0751de 100644 --- a/vetting_bot/callbacks.py +++ b/vetting_bot/callbacks.py @@ -177,15 +177,15 @@ class Callbacks: f"commands a second time)." ) - red_x_and_lock_emoji = "❌ 🔐" + # red_x_and_lock_emoji = "❌ 🔐" # React to the undecryptable event with some emoji - await react_to_event( - self.client, - room.room_id, - event.event_id, - red_x_and_lock_emoji, - ) + # await react_to_event( + # self.client, + # room.room_id, + # event.event_id, + # red_x_and_lock_emoji, + # ) async def unknown(self, room: MatrixRoom, event: UnknownEvent) -> None: """Callback for when an event with a type that is unknown to matrix-nio is received.