This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/plugins/chat/assets/javascripts/discourse
Joffrey JAFFEUX 03d32f26bb
FIX: correctly handles navigating to a message (#19614)
Recent changes surfaced the various issues with this codepath:
- we were not correctly reseting `messageLookup` leading to us trying to scroll to a non existing message in the view
- we were calling markAsRead which would scroll to the bottom, even if we had a target message
- we were not debouncing fetchMessages, which could cause multiple reload of the messages when loading it with a targetMessageId: first fetch from last read and then immediately fetch from targetMessageId
- other naming inconsistencies
- not handling drawer

This commit also adds tests for classic scenarios related to this use case.
2022-12-23 19:48:14 +01:00
..
adapters FIX: better chat-api error handling (#19550) 2022-12-21 16:11:35 +01:00
components FIX: correctly handles navigating to a message (#19614) 2022-12-23 19:48:14 +01:00
connectors FIX: allows an admin to access users preferences (#19559) 2022-12-21 17:52:53 +01:00
controllers DEV: start glimmer-ification and optimisations of chat plugin (#19531) 2022-12-21 13:21:02 +01:00
helpers DEV: Remove user options from current user serializer (#19089) 2022-12-05 18:25:30 +02:00
initializers DEV: Move chat transcript tests into system specs (#19434) 2022-12-23 10:04:41 +10:00
lib DEV: start glimmer-ification and optimisations of chat plugin (#19531) 2022-12-21 13:21:02 +01:00
models FIX: prevents creating a null User object (#19569) 2022-12-22 12:39:53 +10:00
modifiers/chat DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
pre-initializers DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
routes FIX: correctly handles navigating to a message (#19614) 2022-12-23 19:48:14 +01:00
services FIX: correctly handles navigating to a message (#19614) 2022-12-23 19:48:14 +01:00
templates DEV: start glimmer-ification and optimisations of chat plugin (#19531) 2022-12-21 13:21:02 +01:00
widgets DEV: start glimmer-ification and optimisations of chat plugin (#19531) 2022-12-21 13:21:02 +01:00
admin-chat-route-map.js DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
chat-route-map.js DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
preferences-chat-route-map.js DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00