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

Method folder

Telegram/SourceFiles/data/data_session.cpp:5203–5211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5201}
5202
5203not_null<Folder*> Session::folder(FolderId id) {
5204 if (const auto result = folderLoaded(id)) {
5205 return result;
5206 }
5207 const auto &[it, ok] = _folders.emplace(
5208 id,
5209 std::make_unique<Folder>(this, id));
5210 return it->second.get();
5211}
5212
5213Folder *Session::folderLoaded(FolderId id) const {
5214 const auto it = _folders.find(id);

Callers 7

checkFolderMethod · 0.45
ApplyChannelUpdateFunction · 0.45
pinnedCanPinMethod · 0.45
reorderTwoPinnedChatsMethod · 0.45
chatsListForMethod · 0.45
containsMethod · 0.45

Calls 2

emplaceMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected