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

Method registerOne

Telegram/SourceFiles/data/data_folder.cpp:156–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154}
155
156void Folder::registerOne(not_null<History*> history) {
157 if (_chatsList.indexed()->size() == 1) {
158 updateChatListSortPosition();
159 if (!_chatsList.cloudUnreadKnown()) {
160 owner().histories().requestDialogEntry(this);
161 }
162 } else {
163 updateChatListEntry();
164 }
165 reorderLastHistories();
166}
167
168void Folder::unregisterOne(not_null<History*> history) {
169 if (_chatsList.empty()) {

Callers 1

setFolderPointerMethod · 0.80

Calls 4

indexedMethod · 0.80
cloudUnreadKnownMethod · 0.80
requestDialogEntryMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected