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

Method registerMessageRandomId

Telegram/SourceFiles/data/data_session.cpp:3202–3204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3200}
3201
3202void Session::registerMessageRandomId(uint64 randomId, FullMsgId itemId) {
3203 _messageByRandomId.emplace(randomId, itemId);
3204}
3205
3206void Session::unregisterMessageRandomId(uint64 randomId) {
3207 _messageByRandomId.remove(randomId);

Callers 9

forwardMessagesMethod · 0.80
sendRichMessageMethod · 0.80
sendMessageMethod · 0.80
sendInlineResultMethod · 0.80
sendMediaMethod · 0.80
sendAlbumWithUploadedMethod · 0.80
SendExistingMediaFunction · 0.80
SendDiceFunction · 0.80

Calls 1

emplaceMethod · 0.80

Tested by

no test coverage detected