discourse/plugins
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
..
chat DEV: Move ChatThreadsManager to channel (#20304) 2023-02-16 10:00:40 +10:00
discourse-details DEV: Apply syntax_tree formatting to plugins/* 2023-01-07 11:11:37 +00:00
discourse-local-dates DEV: Correct hbs prettier violations 2023-02-02 13:03:11 +00:00
discourse-narrative-bot Update translations (#20183) 2023-02-06 16:49:27 +01:00
discourse-presence DEV: Apply syntax_tree formatting to plugins/* 2023-01-07 11:11:37 +00:00
lazy-yt FIX: lazy_yt_enabled doesn't affect the engine (#19997) 2023-01-25 12:40:57 -03:00
poll Update translations (#19974) 2023-01-24 16:32:34 +01:00
styleguide UX: Easily toggle badges in admin badge list (#20225) 2023-02-09 11:36:27 -08:00