From 50e0d9498e709cb8866f78ae034ba64c85831c2e Mon Sep 17 00:00:00 2001 From: adbenitez Date: Mon, 8 Jul 2024 20:36:39 +0200 Subject: [PATCH] fix: avoid error with forwarded message with quote in dc2mb() --- matterdelta/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/matterdelta/api.py b/matterdelta/api.py index 3ef6761..9827b2e 100644 --- a/matterdelta/api.py +++ b/matterdelta/api.py @@ -50,8 +50,8 @@ def dc2mb(bot: Bot, accid: int, msg: Message) -> None: else: event = "" if msg.quote and mb_config.get("quoteFormat"): - quotenick = ( - msg.quote.override_sender_name or msg.quote.author_display_name or "" + quotenick = msg.quote.get( + "override_sender_name", msg.quote.get("author_display_name", "") ) text = mb_config["quoteFormat"].format( MESSAGE=text,