discourse/app
Alan Guo Xiang Tan fc1fd1b416
FEATURE: Display new/unread count in browse more messages for PMs. (#14188)
In order to include the new/unread count in the browse more message
under suggested topics, a couple of technical changes have to be made.

1. `PrivateMessageTopicTrackingState` is now auto-injected which is
   similar to how it is done for `TopicTrackingState`. This is done so
we don't have to attempt to pass the `PrivateMessageTopicTrackingState`
object multiple levels down into the suggested-topics component. While
the object is auto-injected, we only fetch the initial state and start
tracking when the relevant private messages routes has been hit and only
when a private message's suggested topics is loaded. This is
done as we do not want to add the extra overhead of fetching the inital
state to all page loads but instead wait till the private messages
routes are hit.

2. Previously, we would stop tracking once the `user-private-messages`
   route has been deactivated. However, that is not ideal since
navigating out of the route and back means we send an API call to the
server each time. Since `PrivateMessageTopicTrackingState` is kept in
sync cheaply via messageBus, we can just continue to track the state
even if the user has navigated away from the relevant stages.
2021-09-07 12:30:40 +08:00
..
assets FEATURE: Display new/unread count in browse more messages for PMs. (#14188) 2021-09-07 12:30:40 +08:00
controllers PERF: Avoid additional database query when viewing own user. (#14239) 2021-09-06 10:38:07 +08:00
helpers DEV: Allow us to use Ember CLI assets in production 2021-08-05 08:32:33 -04:00
jobs DEV: Introduce PresenceChannel API for core and plugin use 2021-08-27 16:26:06 +01:00
mailers UX: suspend forever time period messages (#13776) 2021-07-20 14:42:08 +04:00
models DEV: Stop ignoring bookmarks.delete_when_reminder_sent (#14264) 2021-09-07 12:38:18 +10:00
serializers FEATURE: Display new/unread count in browse more messages for PMs. (#14188) 2021-09-07 12:30:40 +08:00
services FIX: perform agree_and_keep action only if possible. (#13967) 2021-09-06 11:41:44 +05:30
views UX: display correct replies count in embedded comments view. (#14175) 2021-08-30 10:37:53 +05:30