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

Add badges to breadcrumb rooms #2861

Merged
merged 2 commits into from
Apr 4, 2019
Merged

Conversation

turt2live
Copy link
Member

@turt2live turt2live commented Apr 1, 2019

Built on #2860 - see ba9407b
Fixes element-hq/element-web#8606

Event listeners are to make sure the counts update when conditions change.

image

@turt2live turt2live requested a review from a team April 1, 2019 22:08

onRoomReceipt = (event, room) => {
if (this.state.rooms.map(r => r.room.roomId).includes(room.roomId)) {
this.forceUpdate();
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we put this in the state please and avoid forceUpdate? I know we do it elsewhere like this, but we should probably stop doing it :)

@turt2live
Copy link
Member Author

(blocking this on #2860 to avoid updating multiple PRs too often)

@turt2live turt2live removed the blocked label Apr 3, 2019
@turt2live turt2live force-pushed the travis/breadcrumbs/badges branch from ba9407b to f73c32e Compare April 3, 2019 22:14
@turt2live turt2live requested a review from bwindels April 3, 2019 22:14
Copy link
Contributor

@bwindels bwindels left a comment

Choose a reason for hiding this comment

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

look great, thanks for the changes!

@turt2live turt2live merged commit 5066d68 into develop Apr 4, 2019
@turt2live turt2live deleted the travis/breadcrumbs/badges branch April 4, 2019 14:24
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.

2 participants