From a7524e4ac4bc46fd3553078c299aff19722d4e0f Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Thu, 19 Mar 2015 02:39:26 +0300 Subject: [PATCH] Fixed mention notifications --- app/js/services.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/js/services.js b/app/js/services.js index 15938499..a56019f2 100755 --- a/app/js/services.js +++ b/app/js/services.js @@ -2352,7 +2352,8 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils']) !message.out && message.unread) { - var isMutedPromise = NotificationsManager.getPeerMuted(peerID); + var notifyPeer = message.flags & 16 ? message.from_id : peerID; + var isMutedPromise = NotificationsManager.getPeerMuted(notifyPeer); var timeout = $rootScope.idle.isIDLE && StatusManager.isOtherDeviceActive() ? 30000 : 1000; setTimeout(function () { isMutedPromise.then(function (muted) {