Browse Source

mtproto bugfixes

master
Igor Zhukov 11 years ago
parent
commit
5e4b41068d
  1. 3
      app/js/lib/mtproto.js
  2. 4
      app/js/services.js

3
app/js/lib/mtproto.js

@ -1470,6 +1470,9 @@ angular.module('izhukov.mtproto', ['izhukov.utils'])
this.reqResendMessage(message.answer_msg_id); this.reqResendMessage(message.answer_msg_id);
break; break;
case 'msgs_state_info':
break;
case 'rpc_result': case 'rpc_result':
this.ackMessage(messageID); this.ackMessage(messageID);

4
app/js/services.js

@ -2762,7 +2762,6 @@ angular.module('myApp.services', [])
case 'updatesCombined': case 'updatesCombined':
case 'updates': case 'updates':
default:
AppUsersManager.saveApiUsers(updateMessage.users); AppUsersManager.saveApiUsers(updateMessage.users);
AppChatsManager.saveApiChats(updateMessage.chats); AppChatsManager.saveApiChats(updateMessage.chats);
@ -2790,6 +2789,9 @@ angular.module('myApp.services', [])
saveUpdate(update); saveUpdate(update);
}); });
break; break;
default:
console.warn(dT(), 'Unknown update message', updateMessage);
} }
popPendingUpdate(); popPendingUpdate();

Loading…
Cancel
Save