浏览代码

Merge pull request #5486 from nextcloud/bugfix/5421

Fix display of 2FA notification.
Matthieu Gallien 2 年之前
父节点
当前提交
30cfba49ca
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      src/gui/tray/usermodel.cpp

+ 6 - 0
src/gui/tray/usermodel.cpp

@@ -120,6 +120,12 @@ void User::showDesktopNotification(const Activity &activity)
 {
     const auto notificationId = activity._id;
     const auto message = AccountManager::instance()->accounts().count() == 1 ? "" : activity._accName;
+
+    // the user needs to interact with this notification
+    if (activity._links.size() > 0) {
+        _activityModel->addNotificationToActivityList(activity);
+    }
+
     showDesktopNotification(activity._subject, message, notificationId);
 }