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

Method addEntry

Telegram/SourceFiles/dialogs/dialogs_main_list.cpp:93–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93RowsByLetter MainList::addEntry(Key key) {
94 const auto result = _all.addToEnd(key);
95
96 const auto unread = key.entry()->chatListUnreadState();
97 unreadEntryChanged(unread, true);
98 recomputeFullListSize();
99
100 return result;
101}
102
103void MainList::removeEntry(Key key) {
104 _all.remove(key);

Callers 1

addToChatListMethod · 0.80

Calls 3

addToEndMethod · 0.45
chatListUnreadStateMethod · 0.45
entryMethod · 0.45

Tested by

no test coverage detected