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

Force update on timelinepanel when event decrypted #1334

Merged
merged 2 commits into from
Aug 24, 2017

Conversation

dbkr
Copy link
Member

@dbkr dbkr commented Aug 24, 2017

Partially fixes element-hq/element-web#4865
(the part about messages not appearing in the timeline until you
move the cursor over the window).

Requires matrix-org/matrix-js-sdk#529

Partially fixes element-hq/element-web#4865
(the part about messages not appearing in the timeline until you
move the cursor over the window).

Requires matrix-org/matrix-js-sdk#529
// TODO: We should restrict this to only events in our timeline,
// but possibly the event tile itself should just update when this
// happens to save us re-rendering the whole timeline.
this.forceUpdate();
Copy link
Member

Choose a reason for hiding this comment

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

hrm; surely we should at least check the room id of the event?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, good point. Done.

Copy link
Member

@richvdh richvdh left a comment

Choose a reason for hiding this comment

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

lgtm

@lukebarnard1
Copy link
Contributor

I wonder if it's worth debouncing the forced update?

@richvdh richvdh assigned dbkr and unassigned richvdh Aug 24, 2017
@dbkr
Copy link
Member Author

dbkr commented Aug 24, 2017

@lukebarnard1 possibly, but we don't do it onRoomTimeline so if that hasn't been causing issues, I'm going to say it's probably better to leave it out for now.

@dbkr dbkr merged commit 814e08d into develop Aug 24, 2017
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.

Broken VOIP on 0.12.1
3 participants