Fixed mention notifications

This commit is contained in:
Igor Zhukov 2015-03-19 02:39:26 +03:00
parent 7211e6ee1e
commit a7524e4ac4

View File

@ -2352,7 +2352,8 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils'])
!message.out && !message.out &&
message.unread) { 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; var timeout = $rootScope.idle.isIDLE && StatusManager.isOtherDeviceActive() ? 30000 : 1000;
setTimeout(function () { setTimeout(function () {
isMutedPromise.then(function (muted) { isMutedPromise.then(function (muted) {