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

Method applyPinnedUpdate

Telegram/SourceFiles/data/data_folder.cpp:365–371  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

363}
364
365void Folder::applyPinnedUpdate(const MTPDupdateDialogPinned &data) {
366 const auto folderId = data.vfolder_id().value_or_empty();
367 if (folderId != 0) {
368 LOG(("API Error: Nested folders detected."));
369 }
370 owner().setChatPinned(this, FilterId(), data.is_pinned());
371}
372
373int Folder::fixedOnTopIndex() const {
374 return kArchiveFixOnTopIndex;

Callers

nothing calls this directly

Calls 1

setChatPinnedMethod · 0.80

Tested by

no test coverage detected