add mention support

This commit is contained in:
Henry Hiles 2025-12-26 17:00:59 -05:00
commit bbe36ff86f
No known key found for this signature in database
8 changed files with 198 additions and 107 deletions

View file

@ -25,7 +25,7 @@ extension EventToMessage on Event {
newContent?["formatted_body"] ??
newContent?["body"] ??
event.content["formatted_body"] ??
event.body,
event.content["body"],
"reply": await replyEvent?.toMessage(mustBeText: true),
"eventType": event.type,
"avatarUrl": sender.avatarUrl.toString(),