Fix notification for focus room in main window

This commit is contained in:
Nicolas Werner 2022-05-07 13:06:16 +02:00
parent 21584cd91d
commit 803bc8cf76
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9

View file

@ -1072,7 +1072,7 @@ TimelineModel::setCurrentIndex(int index)
if (index != oldIndex)
emit currentIndexChanged(index);
if (MainWindow::instance()->activeRoom() != roomId())
if (MainWindow::instance()->activeRoom() != roomId() && QGuiApplication::focusWindow())
return;
if (!currentId.startsWith('m')) {