Fix bug with empty messages

This commit is contained in:
Henry Hiles 2025-12-02 16:16:43 -05:00
commit 9ba5d9e102
No known key found for this signature in database

View file

@ -13,7 +13,8 @@ extension ToMessage on Event {
"formatted": "formatted":
newContent?["formatted_body"] ?? newContent?["formatted_body"] ??
newContent?["body"] ?? newContent?["body"] ??
(formattedText.isEmpty ? this.body : formattedText), content["formatted_body"] ??
this.body,
"eventType": type, "eventType": type,
"displayName": sender.displayName ?? sender.id, "displayName": sender.displayName ?? sender.id,
"txnId": transactionId, "txnId": transactionId,