From 5e4b41068d14572a36d8a3497188646767cf9d99 Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Mon, 23 Jun 2014 12:48:33 +0400 Subject: [PATCH] mtproto bugfixes --- app/js/lib/mtproto.js | 3 +++ app/js/services.js | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/app/js/lib/mtproto.js b/app/js/lib/mtproto.js index d0d58914..99f9d62a 100644 --- a/app/js/lib/mtproto.js +++ b/app/js/lib/mtproto.js @@ -1470,6 +1470,9 @@ angular.module('izhukov.mtproto', ['izhukov.utils']) this.reqResendMessage(message.answer_msg_id); break; + case 'msgs_state_info': + break; + case 'rpc_result': this.ackMessage(messageID); diff --git a/app/js/services.js b/app/js/services.js index c6e4b0dc..f67d2f48 100644 --- a/app/js/services.js +++ b/app/js/services.js @@ -2762,7 +2762,6 @@ angular.module('myApp.services', []) case 'updatesCombined': case 'updates': - default: AppUsersManager.saveApiUsers(updateMessage.users); AppChatsManager.saveApiChats(updateMessage.chats); @@ -2790,6 +2789,9 @@ angular.module('myApp.services', []) saveUpdate(update); }); break; + + default: + console.warn(dT(), 'Unknown update message', updateMessage); } popPendingUpdate();