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

Method clearFromTopic

Telegram/SourceFiles/window/notifications_manager.cpp:494–509  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

492}
493
494void System::clearFromTopic(not_null<Data::ForumTopic*> topic) {
495 if (_manager) {
496 _manager->clearFromTopic(topic);
497 }
498
499 topic->clearNotifications();
500 _whenMaps.remove(topic);
501 _whenAlerts.remove(topic);
502 _waiters.remove(topic);
503 _settingWaiters.remove(topic);
504
505 _watchedTopics.remove(topic);
506
507 _waitTimer.cancel();
508 showNext();
509}
510
511void System::clearFromSublist(not_null<Data::SavedSublist*> sublist) {
512 if (_manager) {

Callers 4

applyTopicDeletedMethod · 0.45
removeChatListEntryMethod · 0.45

Calls 3

clearNotificationsMethod · 0.80
removeMethod · 0.45
cancelMethod · 0.45

Tested by

no test coverage detected