Fixed updateChannelTooLong handling
fixed allow min
This commit is contained in:
parent
c91ed89975
commit
176d49b2b6
@ -133,7 +133,7 @@ angular.module('izhukov.mtproto.wrapper', ['izhukov.utils', 'izhukov.mtproto'])
|
|||||||
|
|
||||||
if (!options.noErrorBox) {
|
if (!options.noErrorBox) {
|
||||||
error.input = method;
|
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 () {
|
setTimeout(function () {
|
||||||
if (!error.handled) {
|
if (!error.handled) {
|
||||||
if (error.code == 401) {
|
if (error.code == 401) {
|
||||||
|
@ -200,7 +200,7 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils'])
|
|||||||
|
|
||||||
function hasUser(id, allowMin) {
|
function hasUser(id, allowMin) {
|
||||||
var user = users[id];
|
var user = users[id];
|
||||||
return angular.isObject(user) && (!allowMin || !user.pFlags.min);
|
return angular.isObject(user) && (allowMin || !user.pFlags.min);
|
||||||
}
|
}
|
||||||
|
|
||||||
function getUserPhoto(id) {
|
function getUserPhoto(id) {
|
||||||
@ -734,7 +734,7 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils'])
|
|||||||
|
|
||||||
function hasChat (id, allowMin) {
|
function hasChat (id, allowMin) {
|
||||||
var chat = chats[id];
|
var chat = chats[id];
|
||||||
return angular.isObject(chat) && (!allowMin || !chat.pFlags.min);
|
return angular.isObject(chat) && (allowMin || !chat.pFlags.min);
|
||||||
}
|
}
|
||||||
|
|
||||||
function getChatPhoto(id) {
|
function getChatPhoto(id) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user