PLT-3328 Added Title for Direct Message Desktop Notifications (#3438)
* Added title for DM desktop notifications
Этот коммит содержится в:
коммит произвёл
Joram Wilander
родитель
fccacbbf96
Коммит
4c9b48da8f
@@ -1097,6 +1097,7 @@
|
||||
"navbar_dropdown.switchTo": "Switch to ",
|
||||
"navbar_dropdown.teamLink": "Get Team Invite Link",
|
||||
"navbar_dropdown.teamSettings": "Team Settings",
|
||||
"notification.dm": "Direct Message",
|
||||
"password_form.change": "Change my password",
|
||||
"password_form.click": "Click <a href={url}>here</a> to log in.",
|
||||
"password_form.enter": "Enter a new password for your {siteName} account.",
|
||||
|
||||
@@ -63,10 +63,12 @@ class NotificationStoreClass extends EventEmitter {
|
||||
}
|
||||
|
||||
let title = Utils.localizeMessage('channel_loader.posted', 'Posted');
|
||||
if (channel) {
|
||||
title = channel.display_name;
|
||||
} else if (msgProps.channel_display_name) {
|
||||
if (!channel) {
|
||||
title = msgProps.channel_display_name;
|
||||
} else if (channel.type === Constants.DM_CHANNEL) {
|
||||
title = Utils.localizeMessage('notification.dm', 'Direct Message');
|
||||
} else {
|
||||
title = channel.display_name;
|
||||
}
|
||||
|
||||
let notifyText = post.message.replace(/\n+/g, ' ');
|
||||
|
||||
Ссылка в новой задаче
Block a user