Skip to content

Conversation

@nickvergessen
Copy link
Member

Split from #3338 for faster merging

When you navigated away, the signaling is currently not stopped, but does something else.
But because the 404 detection failed as well, we retried signaling 3 more times before stopping.

@nickvergessen nickvergessen added 3. to review bug feature: signaling 📶 Internal and external signaling backends labels Apr 22, 2020
@nickvergessen nickvergessen added this to the 💚 Next Major (19) milestone Apr 22, 2020
@nickvergessen nickvergessen requested a review from danxuliu April 22, 2020 12:43
Copy link
Member

@danxuliu danxuliu left a comment

Choose a reason for hiding this comment

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

I could not reproduce the issue described in the PR description 🤷 If I navigate away (as I understand it that means changing to a different conversation) the pulling for the previous conversation was stopped as expected.

Anyway, this fixes the catch clause syntax (it was a leftover from the move from jQuery.ajax() to axios calls) and fixes other scenarios (like trying to pull messages again when kicked from a conversation), so 👍

nickvergessen and others added 2 commits April 23, 2020 15:02
CancelableRequest creates a cancel token that is passed to the wrapped
axios request in its options. "pullSignalingMessages" did not accept an
"options" parameter, so the cancel token was ignored by the request and
cancelling it had no effect.

Besides that, when the pull signaling messages request is cancelled
nothing needs to be done in its handler.

Signed-off-by: Daniel Calviño Sánchez <[email protected]>
@nickvergessen nickvergessen force-pushed the bugfix/noid/internal-signaling-error-handling branch from 4deb8cd to 6d15717 Compare April 23, 2020 13:02
@nickvergessen
Copy link
Member Author

/backport to stable18

@nickvergessen nickvergessen merged commit 383f096 into master Apr 27, 2020
@nickvergessen nickvergessen deleted the bugfix/noid/internal-signaling-error-handling branch April 27, 2020 15:25
@backportbot-nextcloud
Copy link

backport to stable18 in #3405

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to release bug feature: signaling 📶 Internal and external signaling backends

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants