Fix JS error when someone posts a message in a another team (#4791)
Этот коммит содержится в:
коммит произвёл
Harrison Healey
родитель
3e350527a5
Коммит
778e89aab4
@@ -107,7 +107,8 @@ class NotificationStoreClass extends EventEmitter {
|
|||||||
// Notify if you're not looking in the right channel or when
|
// Notify if you're not looking in the right channel or when
|
||||||
// the window itself is not active
|
// the window itself is not active
|
||||||
const activeChannel = ChannelStore.getCurrent();
|
const activeChannel = ChannelStore.getCurrent();
|
||||||
const notify = activeChannel.id !== channel.id || !this.inFocus;
|
const channelId = channel ? channel.id : null;
|
||||||
|
const notify = activeChannel.id !== channelId || !this.inFocus;
|
||||||
|
|
||||||
if (notify) {
|
if (notify) {
|
||||||
Utils.notifyMe(title, body, channel, teamId, duration, !sound);
|
Utils.notifyMe(title, body, channel, teamId, duration, !sound);
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user