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

Method applyUpdateVersion

Telegram/SourceFiles/data/data_chat.cpp:190–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188}
189
190auto ChatData::applyUpdateVersion(int version) -> UpdateStatus {
191 if (_version > version) {
192 return UpdateStatus::TooOld;
193 } else if (_version + 1 < version) {
194 invalidateParticipants();
195 session().api().requestFullPeer(this);
196 return UpdateStatus::Skipped;
197 }
198 setVersion(version);
199 return UpdateStatus::Good;
200}
201
202ChannelData *ChatData::getMigrateToChannel() const {
203 return _migratedTo;

Callers 1

ApplyChatUpdateFunction · 0.80

Calls 2

requestFullPeerMethod · 0.80
apiMethod · 0.80

Tested by

no test coverage detected