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

Calculate badges in the new room list more reliably #4625

Merged
merged 2 commits into from
May 25, 2020

Conversation

turt2live
Copy link
Member

Fixes element-hq/element-web#13757

This uses a different way of calculating the badges by using about 6 less variables, and consolidating the remaining ones down.

Fixes element-hq/element-web#13757

This uses a different way of calculating the badges by using about 6 less variables, and consolidating the remaining ones down.
@turt2live turt2live requested a review from a team May 23, 2020 00:08
Copy link
Member

@t3chguy t3chguy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM otherwise

src/components/views/rooms/RoomTile2.tsx Show resolved Hide resolved
@t3chguy
Copy link
Member

t3chguy commented May 23, 2020

I mean if you ctrl Q it then it won't show up

@turt2live
Copy link
Member Author

That feels like something to report to the WebStorm team and not fix in our project tbh. This isn't the only place we put the comments to the right, or even below, the definitions.

@t3chguy
Copy link
Member

t3chguy commented May 24, 2020

Fair enough, its buggy even when above:

image

shows the first comment for the third member.

@turt2live turt2live merged commit 0e41bde into develop May 25, 2020
@turt2live turt2live deleted the travis/new-badges branch May 25, 2020 12:48
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.

New room list can have zero/NaN for badge counts
2 participants