Fix regex bug
This commit is contained in:
parent
3d6d610f19
commit
11a946e6ea
4 changed files with 98 additions and 128 deletions
|
|
@ -8,9 +8,7 @@ extension EventToMessage on Event {
|
|||
bool mustBeText = false,
|
||||
bool includeEdits = false,
|
||||
}) async {
|
||||
final replyId = relationshipType == RelationshipTypes.reply
|
||||
? relationshipEventId
|
||||
: null;
|
||||
final replyId = inReplyToEventId();
|
||||
|
||||
final newEvent = (unsigned?["m.relations"] as Map?)?["m.replace"];
|
||||
final event = newEvent == null ? this : Event.fromJson(newEvent, room);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue