fix: Edits as lastEvent do not update
This fixes a bug where edit events as lastEvents do not update from SENDING status. Because previously it only checks if the event ID matches.
This commit is contained in:
parent
db7d3b652a
commit
d16c25b26d
|
|
@ -182,10 +182,12 @@ class Room {
|
|||
|
||||
// We ignore events editing events older than the current-latest here so
|
||||
// i.e. newly sent edits for older events don't show up in room preview
|
||||
final lastEvent = this.lastEvent;
|
||||
if (isMessageEvent &&
|
||||
state.relationshipEventId != null &&
|
||||
state.relationshipType == RelationshipTypes.edit &&
|
||||
state.relationshipEventId != lastEvent?.eventId) {
|
||||
lastEvent != null &&
|
||||
!lastEvent.matchesEventOrTransactionId(state.relationshipEventId)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue