MCPcopy Create free account
hub / github.com/TDesktop-x64/tdesktop / feedDifference

Method feedDifference

Telegram/SourceFiles/api/api_updates.cpp:607–619  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

605}
606
607void Updates::feedDifference(
608 const MTPVector<MTPUser> &users,
609 const MTPVector<MTPChat> &chats,
610 const MTPVector<MTPMessage> &msgs,
611 const MTPVector<MTPUpdate> &other) {
612 Core::App().checkAutoLock();
613 session().data().processUsers(users);
614 session().data().processChats(chats);
615 applyConvertToScheduledOnSend(other);
616 feedMessageIds(other);
617 session().data().processMessages(msgs, NewMessageType::Unread);
618 feedUpdateVector(other, SkipUpdatePolicy::SkipMessageIds);
619}
620
621void Updates::differenceFail(const MTP::Error &error) {
622 LOG(("RPC Error in getDifference: %1 %2: %3").arg(

Callers

nothing calls this directly

Calls 6

AppClass · 0.85
checkAutoLockMethod · 0.80
processUsersMethod · 0.80
processChatsMethod · 0.80
processMessagesMethod · 0.80
dataMethod · 0.45

Tested by

no test coverage detected