hotfix for empty dialogs

This commit is contained in:
Igor Zhukov 2015-10-22 17:56:52 +02:00
parent 4459b8d799
commit 6bf2e1af6a

View File

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