Don't react to decryption failures, prevents spamming old messages

This commit is contained in:
Panoramic 2024-06-11 12:17:39 +03:00
parent b3f8eff685
commit b1c75d3268
Signed by: Panoramic
GPG Key ID: 29FEDD73E66D32F1
1 changed files with 7 additions and 7 deletions

View File

@ -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.