private void TL_contacts_ImportedContacts(TL.Object obj) { User.addUsers(obj.getVector("users")); TL.Vector imported = obj.getVector("imported"); for (int i = 0; i < imported.count; i++) { TL.Object c = imported.getObject(i); User.getUser(c.getInt("user_id")).client_id = c.getLong("client_id"); } SyncUtils.updateContacts(Main.main); }
private void TL_updateUserPhoto(TL.Object update) { User user = User.getUser(update.getInt("user_id")); if (user != null) user.setPhoto(update.getObject("photo")); }
private void TL_updateUserStatus(TL.Object update) { User user = User.getUser(update.getInt("user_id")); if (user != null) user.setStatus(update.getObject("status")); }
private void userTyping(int chat_id, int user_id) { User user = User.getUser(user_id); if (user != null) user.setTyping(chat_id, true); }