Add option to disable reply fallbacks

This commit is contained in:
Tulir Asokan
2023-04-23 22:21:35 +03:00
parent 6c6fe134ba
commit c4037ccf11
3 changed files with 5 additions and 0 deletions
@@ -259,6 +259,7 @@ class TelegramMessageConverter:
)
reply_to_id = TelegramID(evt.reply_to.reply_to_msg_id)
msg = await DBMessage.get_one_by_tgid(reply_to_id, space)
no_fallback = no_fallback or self.config["bridge.disable_reply_fallbacks"]
if not msg or msg.mx_room != self.portal.mxid:
if deterministic_id:
content.set_reply(self.deterministic_event_id(space, reply_to_id))