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

Fix not stopping to peek when navigating away from peeked room #2055

Merged
merged 1 commit into from
Jul 16, 2018

Conversation

bwindels
Copy link
Contributor

@bwindels bwindels commented Jul 12, 2018

stopPeeking is currently not called when navigating to a joined room
after having peeked a room. This causes the /events endpoint for the
peeked room to be called until peeking another room, even when not
viewing the peeked room anymore.

The current code would only stop peeking if you joining were true (note the nesting),
e.g. when waiting for your join to be confirmed by /sync.

This change might make stopPeeking called also when not needed but there is a guard in
that method to do nothing if not currently peeking.

Came across this while testing the lazy load changes.

stopPeeking is currently not called when navigating to a joined room
after having peeked a room. This causes the /events endpoint for the
peeked room to be called until peeking another room, even when not
viewing the peeked room anymore.

The current code would only stop peeking if you joining were true (note the nesting),
e.g. when waiting for your join to be confirmed by /sync.

This change might make stopPeeking called also when not needed by there is a guard in
that method to do nothing if not currently peeking.
@bwindels bwindels requested a review from dbkr July 16, 2018 12:30
@dbkr dbkr merged commit 415eef5 into develop Jul 16, 2018
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