mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-07-31 09:57:15 -04:00
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.