Skip to content

Commit

Permalink
fix: avoid error with forwarded message with quote in dc2mb()
Browse files Browse the repository at this point in the history
  • Loading branch information
adbenitez committed Jul 8, 2024
1 parent 1566e73 commit 50e0d94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions matterdelta/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 50e0d94

Please sign in to comment.