Fixed unread in dialogs list

Closes #935
This commit is contained in:
Igor Zhukov 2015-10-20 16:57:33 +02:00
parent 2115a81a4f
commit 287a35eea6

View File

@ -1676,7 +1676,7 @@ angular.module('myApp.services')
}
function wrapForDialog (msgID, dialog) {
var useCache = dialog === undefined;
var useCache = dialog !== undefined;
var unreadCount = dialog && dialog.unread_count;
if (useCache && messagesForDialogs[msgID] !== undefined) {