working edits

This commit is contained in:
Henry Hiles 2026-01-06 11:20:17 -05:00
commit f9f4a4b48e
No known key found for this signature in database
4 changed files with 19 additions and 5 deletions

View file

@ -9,7 +9,6 @@ extension EventToMessage on Event {
bool includeEdits = false,
}) async {
final replyId = inReplyToEventId();
final newEvent = (unsigned?["m.relations"] as Map?)?["m.replace"];
final event = newEvent == null ? this : Event.fromJson(newEvent, room);