mirror of
https://github.com/discourse/discourse.git
synced 2025-04-08 02:30:44 +08:00
FIX: correctly show "chat with" and not "chat in" for users (#24651)
Prior to this fix direct message would always show "Chat in ..." when hovering the channel even if you were hovering a direct message channel with another user (or yourself). We will now correctly show: - `Chat in ...` for group channels - `Chat with ...` for direct message channels
This commit is contained in:
parent
9fb4175008
commit
a1ae9f6ab0
@ -273,9 +273,15 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get title() {
|
get title() {
|
||||||
|
if (this.channel.chatable.group) {
|
||||||
return I18n.t("chat.placeholder_channel", {
|
return I18n.t("chat.placeholder_channel", {
|
||||||
channelName: this.channel.escapedTitle,
|
channelName: this.channel.escapedTitle,
|
||||||
});
|
});
|
||||||
|
} else {
|
||||||
|
return I18n.t("chat.placeholder_users", {
|
||||||
|
commaSeparatedNames: this.channel.chatable.users[0].username,
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
get text() {
|
get text() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user