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

Method removeFromChatList

Telegram/SourceFiles/dialogs/dialogs_entry.cpp:434–453  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

432}
433
434void Entry::removeFromChatList(
435 FilterId filterId,
436 not_null<MainList*> list) {
437 if (isPinnedDialog(filterId)) {
438 owner().setChatPinned(this, filterId, false);
439 }
440 if (filterId) {
441 const auto it = _tagColors.find(filterId);
442 if (it != end(_tagColors)) {
443 _tagColors.erase(it);
444 }
445 }
446
447 const auto i = _chatListLinks.find(filterId);
448 if (i == end(_chatListLinks)) {
449 return;
450 }
451 _chatListLinks.erase(i);
452 list->removeEntry(this);
453}
454
455void Entry::removeChatListEntryByLetter(FilterId filterId, QChar letter) {
456 const auto i = _chatListLinks.find(filterId);

Callers 3

refreshChatListEntryMethod · 0.80
removeChatListEntryMethod · 0.80
applyChangeMethod · 0.80

Calls 4

setChatPinnedMethod · 0.80
removeEntryMethod · 0.80
findMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected