From 176d49b2b6bb79f8610d0e04cc6d0304dd26638c Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Thu, 14 Apr 2016 17:53:18 +0300 Subject: [PATCH] Fixed updateChannelTooLong handling fixed allow min --- app/js/lib/mtproto_wrapper.js | 2 +- app/js/services.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/js/lib/mtproto_wrapper.js b/app/js/lib/mtproto_wrapper.js index 45aadccd..d3afd58b 100644 --- a/app/js/lib/mtproto_wrapper.js +++ b/app/js/lib/mtproto_wrapper.js @@ -133,7 +133,7 @@ angular.module('izhukov.mtproto.wrapper', ['izhukov.utils', 'izhukov.mtproto']) if (!options.noErrorBox) { error.input = method; - error.stack = error.originalError && error.originalError.stack || error.stack || (new Error()).stack; + error.stack = stack || (error.originalError && error.originalError.stack) || error.stack || (new Error()).stack; setTimeout(function () { if (!error.handled) { if (error.code == 401) { diff --git a/app/js/services.js b/app/js/services.js index 171eb1ba..87c877df 100755 --- a/app/js/services.js +++ b/app/js/services.js @@ -200,7 +200,7 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils']) function hasUser(id, allowMin) { var user = users[id]; - return angular.isObject(user) && (!allowMin || !user.pFlags.min); + return angular.isObject(user) && (allowMin || !user.pFlags.min); } function getUserPhoto(id) { @@ -734,7 +734,7 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils']) function hasChat (id, allowMin) { var chat = chats[id]; - return angular.isObject(chat) && (!allowMin || !chat.pFlags.min); + return angular.isObject(chat) && (allowMin || !chat.pFlags.min); } function getChatPhoto(id) {