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

Method cancelRequests

Telegram/SourceFiles/api/api_unread_things.cpp:106–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106void UnreadThings::cancelRequests(not_null<Data::Thread*> thread) {
107 if (const auto requestId = _mentionsRequests.take(thread)) {
108 _api->request(*requestId).cancel();
109 }
110 if (const auto requestId = _reactionsRequests.take(thread)) {
111 _api->request(*requestId).cancel();
112 }
113 if (const auto requestId = _pollVotesRequests.take(thread)) {
114 _api->request(*requestId).cancel();
115 }
116}
117
118void UnreadThings::requestMentions(
119 not_null<Data::Thread*> thread,

Callers

nothing calls this directly

Calls 3

takeMethod · 0.45
cancelMethod · 0.45
requestMethod · 0.45

Tested by

no test coverage detected