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

Method setChatPinned

Telegram/SourceFiles/data/data_session.cpp:2517–2528  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2515}
2516
2517void Session::setChatPinned(
2518 Dialogs::Key key,
2519 FilterId filterId,
2520 bool pinned) {
2521 Expects(key.entry()->folderKnown());
2522
2523 const auto list = (filterId
2524 ? chatsFilters().chatsList(filterId)
2525 : chatsListFor(key.entry()))->pinned();
2526 list->setPinned(key, pinned);
2527 notifyPinnedDialogsOrderUpdated();
2528}
2529
2530void Session::setPinnedFromEntryList(Dialogs::Key key, bool pinned) {
2531 Expects(key.entry()->folderKnown());

Callers 12

PinnedLimitReachedFunction · 0.80
TogglePinnedThreadFunction · 0.80
applyPinnedUpdateMethod · 0.80
applyReceivedSublistsMethod · 0.80
applyMethod · 0.80
applyItemAddedMethod · 0.80
applyItemRemovedMethod · 0.80
loadAroundMethod · 0.80
feedUpdateMethod · 0.80
removeFromChatListMethod · 0.80
setFolderPointerMethod · 0.80
applyPinnedUpdateMethod · 0.80

Calls 5

setPinnedMethod · 0.80
folderKnownMethod · 0.45
entryMethod · 0.45
pinnedMethod · 0.45
chatsListMethod · 0.45

Tested by

no test coverage detected