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

Method updated

Telegram/SourceFiles/data/data_changes.cpp:15–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13
14template <typename DataType, typename UpdateType>
15void Changes::Manager<DataType, UpdateType>::updated(
16 not_null<DataType*> data,
17 Flags flags,
18 bool dropScheduled) {
19 sendRealtimeNotifications(data, flags);
20 if (dropScheduled) {
21 const auto i = _updates.find(data);
22 if (i != _updates.end()) {
23 flags |= i->second;
24 _updates.erase(i);
25 }
26 _stream.fire({ data, flags });
27 } else {
28 _updates[data] |= flags;
29 }
30}
31
32template <typename DataType, typename UpdateType>
33void Changes::Manager<DataType, UpdateType>::sendRealtimeNotifications(

Callers 15

MainMenuMethod · 0.45
setupMethod · 0.45
ComposeAiBoxFunction · 0.45
MakeGiftsListFunction · 0.45
prepareMethod · 0.45
prepareMethod · 0.45
CreateEmojiPackButtonFunction · 0.45
peerUpdatedMethod · 0.45
historyUpdatedMethod · 0.45
topicUpdatedMethod · 0.45
sublistUpdatedMethod · 0.45
messageUpdatedMethod · 0.45

Calls 4

findMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45
fireMethod · 0.45

Tested by

no test coverage detected