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

Method feedChannelDifference

Telegram/SourceFiles/api/api_updates.cpp:444–459  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

442}
443
444void Updates::feedChannelDifference(
445 const MTPDupdates_channelDifference &data) {
446 session().data().processUsers(data.vusers());
447 session().data().processChats(data.vchats());
448
449 _handlingChannelDifference = true;
450 applyConvertToScheduledOnSend(data.vother_updates());
451 feedMessageIds(data.vother_updates());
452 session().data().processMessages(
453 data.vnew_messages(),
454 NewMessageType::Unread);
455 feedUpdateVector(
456 data.vother_updates(),
457 SkipUpdatePolicy::SkipMessageIds);
458 _handlingChannelDifference = false;
459}
460
461void Updates::channelDifferenceFail(
462 not_null<ChannelData*> channel,

Callers

nothing calls this directly

Calls 4

processUsersMethod · 0.80
processChatsMethod · 0.80
processMessagesMethod · 0.80
dataMethod · 0.45

Tested by

no test coverage detected