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() {
|
||||
return I18n.t("chat.placeholder_channel", {
|
||||
channelName: this.channel.escapedTitle,
|
||||
});
|
||||
if (this.channel.chatable.group) {
|
||||
return I18n.t("chat.placeholder_channel", {
|
||||
channelName: this.channel.escapedTitle,
|
||||
});
|
||||
} else {
|
||||
return I18n.t("chat.placeholder_users", {
|
||||
commaSeparatedNames: this.channel.chatable.users[0].username,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
get text() {
|
||||
|
|
Loading…
Reference in New Issue