Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Fix categorization of favourites and new rooms #2681

Merged
merged 1 commit into from
Feb 22, 2019

Conversation

turt2live
Copy link
Member

New rooms (joined, invited, created, etc) were being ignored because they matched the check as soon as the iterator hit a non-recents section. This fixes the check to ensure there's a positive ID on the room being in the tag (or not, in the case of new rooms) before lying to the rest of the function.

Additionally, a fix for favourites has been included to stop the list expanding to fill the void - turns out it was inserting the room twice into the list, and this was breaking the tile rendering. The room sublist would allocate space for the tile, but React would prevent the tile from showing up because of duplicate keys.

Fixes element-hq/element-web#8868
Fixes element-hq/element-web#8857 correctly

New rooms (joined, invited, created, etc) were being ignored because they matched the check as soon as the iterator hit a non-recents section. This fixes the check to ensure there's a positive ID on the room being in the tag (or not, in the case of new rooms) before lying to the rest of the function.

Additionally, a fix for favourites has been included to stop the list expanding to fill the void - turns out it was inserting the room twice into the list, and this was breaking the tile rendering. The room sublist would allocate space for the tile, but React would prevent the tile from showing up because of duplicate keys.

Fixes element-hq/element-web#8868
Fixes element-hq/element-web#8857 correctly
@turt2live turt2live requested a review from a team February 22, 2019 02:21
@bwindels bwindels self-assigned this Feb 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Newly created rooms don't show up in the room list Favourites section is now a recents section
2 participants