matrix-react-sdk
b412b9e8 - Fix stopPeeking not being called at the right time

Commit
7 years ago
Fix stopPeeking not being called at the right time 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.
Author
Parents
Loading