mirror of
https://github.com/discourse/discourse.git
synced 2025-03-26 20:35:40 +08:00
DEV: removes dead code (#23772)
This commit is contained in:
parent
35d2426b42
commit
a1aedc9ce1
@ -8,7 +8,6 @@ import { avatarUrl } from "discourse-common/lib/avatar-utils";
|
||||
import { dasherize } from "@ember/string";
|
||||
import { emojiUnescape } from "discourse/lib/text";
|
||||
import { decorateUsername } from "discourse/helpers/decorate-username-selector";
|
||||
import { until } from "discourse/lib/formatter";
|
||||
import { inject as service } from "@ember/service";
|
||||
import ChatModalNewMessage from "discourse/plugins/chat/discourse/components/chat/modal/new-message";
|
||||
import getURL from "discourse-common/lib/get-url";
|
||||
@ -345,21 +344,6 @@ export default {
|
||||
get hoverTitle() {
|
||||
return I18n.t("chat.direct_messages.leave");
|
||||
}
|
||||
|
||||
_userStatusTitle(status) {
|
||||
let title = `${escapeExpression(status.description)}`;
|
||||
|
||||
if (status.ends_at) {
|
||||
const untilFormatted = until(
|
||||
status.ends_at,
|
||||
this.chatService.currentUser.user_option.timezone,
|
||||
this.chatService.currentUser.locale
|
||||
);
|
||||
title += ` ${untilFormatted}`;
|
||||
}
|
||||
|
||||
return title;
|
||||
}
|
||||
};
|
||||
|
||||
const SidebarChatDirectMessagesSection = class extends BaseCustomSidebarSection {
|
||||
|
Loading…
x
Reference in New Issue
Block a user