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 {
stateEvent.relationshipType != RelationshipTypes.edit
? room.setState(stateEvent)
: {room.lastEvent.eventId, room.lastEvent.relationshipEventId}
.contains(stateEvent.relationshipEventId)
? room.setState(stateEvent)
: null;
if (stateEvent.relationshipType != RelationshipTypes.edit
|| {room.lastEvent.eventId,room.lastEvent.relationshipEventId}
.contains(stateEvent.relationshipEventId)) {
room.setState(stateEvent);
}
}
break;
case EventUpdateType.accountData: