mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-25 13:55:47 +03:00
Fix display of 2FA notification.
Fix for issue #5421: add server notifications to the activities list when the user needs to act on it. Signed-off-by: Camila <hello@camila.codes>
This commit is contained in:
parent
20e20a6ef7
commit
ec7b5481d4
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue