From dc12cdf1968aee1f1cf3eede37ea21e81de0c1fa Mon Sep 17 00:00:00 2001 From: Camila Date: Tue, 29 Sep 2020 18:51:48 +0200 Subject: [PATCH] Correct the object name returned by the api. The id was always 0 so no new systray messages were displayed. Signed-off-by: Camila --- src/gui/tray/NotificationHandler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/tray/NotificationHandler.cpp b/src/gui/tray/NotificationHandler.cpp index 70401b21f..445d0a88a 100644 --- a/src/gui/tray/NotificationHandler.cpp +++ b/src/gui/tray/NotificationHandler.cpp @@ -92,7 +92,7 @@ void ServerNotificationHandler::slotNotificationsReceived(const QJsonDocument &j auto json = element.toObject(); a._type = Activity::NotificationType; a._accName = ai->account()->displayName(); - a._id = json.value("activity_id").toInt(); + a._id = json.value("notification_id").toInt(); //need to know, specially for remote_share a._objectType = json.value("object_type").toString(); @@ -148,4 +148,4 @@ void ServerNotificationHandler::slotNotificationsReceived(const QJsonDocument &j deleteLater(); } -} \ No newline at end of file +} -- 2.30.2