Files
matrix-rust-sdk/testing
Ivan Enderlin 0adcc36384 test(sdk): Remove the m.ignored_user_list data from LEAVE_SYNC.
This patch removes the `m.ignored_user_list` event from the
`account_data` of the `LEAVE_SYNC` payload. First off, I believe this is
a copy-paste remainder. Second, this is breaking a couple of tests with
the Event Cache because, when a user is ignored, the Event Cache clears
all the rooms! This “bug” was hidden before because a `LinkedChunk`
was always containing an chunk empty. The tests were asserting the room
cache wasn't empty, which was true. Now the `LinkedChunk` creates the
first chunk lazily when needed, this assertion fails. This is how I
understood the Event Cache was cleared and why.

With this change, the `test_forget_non_direct_room` and
`test_forget_banned_room` tests now pass.
2026-07-20 16:28:31 +02:00
..