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/routes
Martin Brennan c0a086a988
DEV: Move ChatThreadsManager to channel (#20304)
This commit changes the ChatThreadsManager into a native
class instead of an ember service, and initializes it
for every ChatChannel model. This way each channel has its
own thread manager and cache that we can load/unload as
needed, and we also move activeThread to the channel since
it makes more sense to keep it there, not inside the chat service.

The pattern of calling setOwner with the passed in owner
from ChatChannel is adapted from the latest ember docs,
and is needed to avoid the error below when calling services
from the native class:

> Attempting to lookup an injected property on an object without a container, ensure that the object was instantiated via a container

It works well _only_ if we use our own getOwner wrapper
from addon/lib/get-owner, which is for backwards compat.

c.f. https://guides.emberjs.com/release/in-depth-topics/native-classes-in-depth/
2023-02-16 10:00:40 +10:00
..
admin-plugins-chat.js DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
chat-browse-archived.js DEV: start glimmer-ification and optimisations of chat plugin (#19531) 2022-12-21 13:21:02 +01:00
chat-browse-index.js DEV: Change setActiveChannel to get/set in services/chat (#20237) 2023-02-10 11:41:29 +01:00
chat-channel-decorator.js DEV: Chat service object initial implementation (#19814) 2023-02-13 13:09:57 +01:00
chat-channel-info-about.js DEV: start glimmer-ification and optimisations of chat plugin (#19531) 2022-12-21 13:21:02 +01:00
chat-channel-info-index.js DEV: start glimmer-ification and optimisations of chat plugin (#19531) 2022-12-21 13:21:02 +01:00
chat-channel-info-members.js DEV: start glimmer-ification and optimisations of chat plugin (#19531) 2022-12-21 13:21:02 +01:00
chat-channel-info-settings.js DEV: start glimmer-ification and optimisations of chat plugin (#19531) 2022-12-21 13:21:02 +01:00
chat-channel-info.js DEV: refactors routes to simplify using outlet (#20179) 2023-02-07 13:59:32 +01:00
chat-channel-legacy.js DEV: refactors routes to simplify using outlet (#20179) 2023-02-07 13:59:32 +01:00
chat-channel-near-message.js DEV: refactors routes to simplify using outlet (#20179) 2023-02-07 13:59:32 +01:00
chat-channel-thread.js DEV: Move ChatThreadsManager to channel (#20304) 2023-02-16 10:00:40 +10:00
chat-channel.js DEV: Move ChatThreadsManager to channel (#20304) 2023-02-16 10:00:40 +10:00
chat-draft-channel.js DEV: Change setActiveChannel to get/set in services/chat (#20237) 2023-02-10 11:41:29 +01:00
chat-index.js DEV: routable chat part 2 (#20232) 2023-02-14 11:27:07 +01:00
chat-message.js DEV: Pass messageId as a dynamic segment instead of a query param (#20013) 2023-02-01 12:39:23 -03:00
chat.js DEV: routable chat part 2 (#20232) 2023-02-14 11:27:07 +01:00
preferences-chat.js FIX: correctly allows admin to visit a user chat's preferences page (#19619) 2022-12-23 21:18:09 +01:00