checking auth in onViewsIncrement

This commit is contained in:
John Preston 2016-03-15 21:08:17 +03:00
parent 281f762869
commit 1828b14cda
1 changed files with 2 additions and 0 deletions

View File

@ -2166,6 +2166,8 @@ void MainWidget::scheduleViewIncrement(HistoryItem *item) {
}
void MainWidget::onViewsIncrement() {
if (!App::main() || !MTP::authedId()) return;
for (ViewsIncrement::iterator i = _viewsToIncrement.begin(); i != _viewsToIncrement.cend();) {
if (_viewsIncrementRequests.contains(i.key())) {
++i;