discourse/plugins
Joffrey JAFFEUX 0764dc3452
FIX: cancel fetching messages after channel change (#21689)
This issue was especially visible in tests. the `@debounce(100)` was not cancelled when changing channel which was causing 404s as we were trying to load messages on a channel which was deleted as the channel has been destroyed at the end of the test.

This is still not a perfect solution, as we can only cancel the start of `fetchMessages`, but we can't cancel the actual `chatApi.channel` request which result can potentially happens after channel changed, which we try to mitigate with various checks on to ensure visible channel == loaded messages channel.

This commit also tries to make handler naming and cancelling more consistent.

<!-- NOTE: All pull requests should have tests (rspec in Ruby, qunit in JavaScript). If your code does not include test coverage, please include an explanation of why it was omitted. -->
2023-05-23 16:01:47 +02:00
..
chat FIX: cancel fetching messages after channel change (#21689) 2023-05-23 16:01:47 +02:00
discourse-details Update translations (#21583) 2023-05-16 19:40:01 +02:00
discourse-lazy-videos DEV: Fix random typos (#21638) 2023-05-18 15:34:46 +02:00
discourse-local-dates Update translations (#21583) 2023-05-16 19:40:01 +02:00
discourse-narrative-bot Update translations (#21583) 2023-05-16 19:40:01 +02:00
discourse-presence Update translations (#20370) 2023-02-20 11:01:01 +01:00
poll Update translations (#21583) 2023-05-16 19:40:01 +02:00
styleguide DEV: Improve manual color scheme toggle in styleguide (#21629) 2023-05-18 07:31:20 +02:00