-
Notifications
You must be signed in to change notification settings - Fork 434
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix concurrency when cancelling lookForNewMessages
When switching between regular mode and call mode, the two MessagesList view instances are concurrently disturbing each other's lookForNewMessages call. To fix this, we now introduce a requestId for those requests to which we pass in the chatIdentifier, extended by a generated view id. This brings back the old behavior for now. In the future we should look into keeping the polling request and sharing it between the two Vues, which requires some refactoring of the polling logic and timeouts. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
- Loading branch information
Showing
3 changed files
with
64 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters