cleaner conditions

This commit is contained in:
Nicolas Werner 2021-08-16 23:57:07 +00:00 committed by td
parent c4c1c676da
commit a4ac9eab66
1 changed files with 5 additions and 6 deletions

View File

@ -1536,12 +1536,11 @@ sort order of ${prevState.sortOrder}. This should never happen...''');
), ),
); );
} else { } else {
stateEvent.relationshipType != RelationshipTypes.edit if (stateEvent.relationshipType != RelationshipTypes.edit
? room.setState(stateEvent) || {room.lastEvent.eventId,room.lastEvent.relationshipEventId}
: {room.lastEvent.eventId, room.lastEvent.relationshipEventId} .contains(stateEvent.relationshipEventId)) {
.contains(stateEvent.relationshipEventId) room.setState(stateEvent);
? room.setState(stateEvent) }
: null;
} }
break; break;
case EventUpdateType.accountData: case EventUpdateType.accountData: