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

Method markingAsRead

Telegram/SourceFiles/mainwindow.cpp:595–605  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

593}
594
595bool MainWindow::markingAsRead() const {
596 return _main
597 && !_main->isHidden()
598 && !_main->animatingShow()
599 && !_layer
600 && !isHidden()
601 && !isMinimized()
602 && windowHandle()->isExposed()
603 && (AutoScrollInactiveChat.value()
604 || (isActive() && !_main->session().updates().isIdle()));
605}
606
607void MainWindow::checkActivation() {
608 updateIsActive();

Callers 2

markingContentsReadMethod · 0.80

Calls 6

isIdleMethod · 0.80
isHiddenMethod · 0.45
animatingShowMethod · 0.45
valueMethod · 0.45
updatesMethod · 0.45
sessionMethod · 0.45

Tested by

no test coverage detected