diff --git a/lib/src/room.dart b/lib/src/room.dart index f330b72a..2a619a91 100644 --- a/lib/src/room.dart +++ b/lib/src/room.dart @@ -196,15 +196,6 @@ class Room { return; } - // Do not set old events as state events - final prevEvent = getState(state.type, stateKey); - if (prevEvent != null && - prevEvent.eventId != state.eventId && - prevEvent.originServerTs.millisecondsSinceEpoch > - state.originServerTs.millisecondsSinceEpoch) { - return; - } - (states[state.type] ??= {})[stateKey] = state; client.onRoomState.add(state);