Don't react to decryption failures, prevents spamming old messages
This commit is contained in:
parent
b3f8eff685
commit
b1c75d3268
|
@ -177,15 +177,15 @@ class Callbacks:
|
||||||
f"commands a second time)."
|
f"commands a second time)."
|
||||||
)
|
)
|
||||||
|
|
||||||
red_x_and_lock_emoji = "❌ 🔐"
|
# red_x_and_lock_emoji = "❌ 🔐"
|
||||||
|
|
||||||
# React to the undecryptable event with some emoji
|
# React to the undecryptable event with some emoji
|
||||||
await react_to_event(
|
# await react_to_event(
|
||||||
self.client,
|
# self.client,
|
||||||
room.room_id,
|
# room.room_id,
|
||||||
event.event_id,
|
# event.event_id,
|
||||||
red_x_and_lock_emoji,
|
# red_x_and_lock_emoji,
|
||||||
)
|
# )
|
||||||
|
|
||||||
async def unknown(self, room: MatrixRoom, event: UnknownEvent) -> None:
|
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.
|
"""Callback for when an event with a type that is unknown to matrix-nio is received.
|
||||||
|
|
Loading…
Reference in New Issue