mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 11:41:03 +08:00

This commit adds a new "My threads" link in sidebar and drawer. This link will open the "/chat/threads" page which contains all threads where the current user is a member. It's ordered by activity (unread and then last message created). Moreover, the threads list of a channel page is now showing every threads of a channel, and not just the ones where you are a member.
11 lines
250 B
JavaScript
11 lines
250 B
JavaScript
import { inject as service } from "@ember/service";
|
|
import DiscourseRoute from "discourse/routes/discourse";
|
|
|
|
export default class ChatChannelThreads extends DiscourseRoute {
|
|
@service chat;
|
|
|
|
activate() {
|
|
this.chat.activeChannel = null;
|
|
}
|
|
}
|