2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-01 15:05:56 +00:00

Display and follow unread mentions in history.

This commit is contained in:
John Preston
2017-08-11 09:16:07 +02:00
parent 7ad21ff713
commit e209737b1a
31 changed files with 747 additions and 357 deletions

View File

@@ -516,6 +516,11 @@ bool MainWindow::doWeReadServerHistory() {
return isActive() && _main && !Ui::isLayerShown() && _main->doWeReadServerHistory();
}
bool MainWindow::doWeReadMentions() {
updateIsActive(0);
return isActive() && _main && !Ui::isLayerShown() && _main->doWeReadMentions();
}
void MainWindow::checkHistoryActivation() {
if (_main && doWeReadServerHistory()) {
_main->markActiveHistoryAsRead();