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
..
2023-05-22 17:00:50 +02:00
2023-05-16 14:51:13 +02:00
2023-05-17 20:03:19 +02:00
2022-12-28 13:11:12 +00:00
2023-05-15 11:46:33 +02:00
2023-05-15 11:46:33 +02:00
2023-05-15 11:46:33 +02:00
2022-12-21 13:21:02 +01:00
2023-03-16 15:27:09 -06:00
2023-01-18 09:13:33 +10:00
2022-12-28 13:11:12 +00:00
2023-05-08 18:24:41 +02:00
2023-05-08 18:24:41 +02:00
2023-05-09 09:22:25 +02:00
2023-03-16 15:27:09 -06:00
2022-12-21 13:21:02 +01:00
2022-12-28 13:11:12 +00:00
2022-12-28 13:11:12 +00:00
2022-12-28 13:11:12 +00:00
2023-01-18 12:36:16 +01:00
2023-05-08 18:24:41 +02:00
2023-05-08 18:24:41 +02:00
2023-05-15 11:46:33 +02:00
2022-12-21 13:21:02 +01:00
2023-04-06 15:19:52 +02:00
2023-04-06 15:19:52 +02:00
2023-05-18 15:34:46 +02:00
2023-05-18 15:34:46 +02:00
2023-05-10 08:45:13 -03:00
2023-05-10 08:45:13 -03:00
2023-02-07 13:59:32 +01:00
2023-05-16 14:51:13 +02:00
2022-12-28 13:11:12 +00:00
2023-05-08 18:24:41 +02:00
2023-05-08 18:24:41 +02:00
2023-05-08 18:24:41 +02:00
2022-12-28 13:11:12 +00:00
2022-12-05 17:03:51 +01:00
2023-05-08 18:24:41 +02:00
2023-05-08 18:24:41 +02:00
2023-05-09 09:22:25 +02:00
2023-05-09 09:22:25 +02:00
2023-05-08 18:24:41 +02:00
2023-05-08 18:24:41 +02:00
2022-12-28 13:11:12 +00:00
2022-12-21 13:21:02 +01:00
2023-05-16 14:51:13 +02:00
2023-05-17 17:49:52 +02:00
2023-05-23 16:01:47 +02:00
2023-05-22 17:00:50 +02:00
2023-05-18 15:34:46 +02:00
2023-05-17 17:49:52 +02:00
2023-04-25 10:23:03 +02:00
2023-04-25 10:23:03 +02:00
2023-04-25 10:23:03 +02:00
2023-04-25 10:23:03 +02:00
2023-05-02 18:11:40 +02:00
2023-05-23 10:12:03 +02:00
2023-05-22 17:00:50 +02:00
2023-05-15 11:46:33 +02:00
2023-05-15 11:46:33 +02:00
2023-04-06 15:19:52 +02:00
2023-04-18 08:37:13 +02:00
2022-12-28 13:11:12 +00:00
2023-04-13 20:35:13 +02:00
2023-04-13 20:35:13 +02:00
2023-05-16 11:48:01 +02:00
2023-03-03 13:09:25 +01:00
2023-05-16 14:51:13 +02:00
2023-05-16 14:51:13 +02:00
2023-03-21 10:40:42 -04:00
2023-01-31 10:16:45 +01:00
2023-02-03 15:38:30 -03:00
2023-02-20 10:31:02 +01:00
2023-05-05 08:55:55 +02:00
2023-05-17 17:49:52 +02:00
2023-05-05 08:55:55 +02:00
2023-04-06 15:19:52 +02:00
2023-03-03 13:09:25 +01:00
2023-03-29 11:54:25 -04:00
2023-03-29 11:54:25 -04:00
2023-03-03 13:09:25 +01:00
2023-05-05 08:55:55 +02:00
2023-03-03 13:09:25 +01:00
2023-03-03 13:09:25 +01:00
2023-03-03 13:09:25 +01:00
2023-03-03 13:09:25 +01:00
2023-03-03 13:09:25 +01:00
2023-02-14 11:27:07 +01:00
2023-03-30 20:01:38 +02:00
2023-04-06 15:19:52 +02:00
2023-03-09 13:44:02 +01:00
2023-03-03 13:09:25 +01:00
2023-03-06 16:42:11 +01:00
2023-03-03 13:09:25 +01:00
2023-05-10 11:42:32 +02:00
2023-05-10 11:42:32 +02:00
2023-05-19 11:33:56 +02:00
2023-05-17 17:49:52 +02:00
2023-05-11 08:02:04 +02:00
2023-05-11 08:02:04 +02:00
2023-02-15 14:50:01 +01:00
2023-02-15 14:50:01 +01:00
2023-03-03 13:09:25 +01:00
2023-03-03 13:09:25 +01:00
2023-04-19 01:54:15 +02:00
2023-02-02 13:03:11 +00:00
2023-05-08 18:24:41 +02:00
2023-04-25 10:23:03 +02:00
2023-05-09 22:38:44 +02:00
2023-04-28 22:06:27 +02:00
2023-03-06 16:42:11 +01:00
2023-03-03 13:09:25 +01:00
2023-05-17 17:49:52 +02:00
2023-05-23 10:43:39 +02:00
2022-12-28 13:11:12 +00:00
2022-12-21 13:21:02 +01:00
2023-04-25 10:23:03 +02:00
2023-04-25 10:23:03 +02:00
2023-02-06 16:00:03 +10:00
2023-02-06 16:00:03 +10:00
2022-12-28 13:11:12 +00:00
2022-12-28 13:11:12 +00:00
2023-02-17 10:14:00 -03:00
2023-02-17 10:14:00 -03:00
2023-05-15 22:00:03 +02:00
2023-03-06 16:42:11 +01:00
2023-03-06 16:42:11 +01:00
2022-12-28 13:11:12 +00:00
2023-02-02 15:04:52 -03:00
2023-05-15 22:00:03 +02:00
2023-05-15 11:46:33 +02:00
2023-04-25 10:23:03 +02:00
2023-03-03 13:09:25 +01:00
2022-12-28 13:11:12 +00:00
2023-02-01 12:39:23 -03:00
2022-11-30 15:53:54 +00:00
2023-02-14 11:27:07 +01:00
2023-02-14 11:27:07 +01:00
2022-12-28 13:11:12 +00:00
2022-12-21 13:21:02 +01:00
2023-03-21 10:40:42 -04:00
2023-02-14 11:27:07 +01:00