Correct the object name returned by the api.
authorCamila <hello@camila.codes>
Tue, 29 Sep 2020 16:51:48 +0000 (18:51 +0200)
committerCamila <hello@camila.codes>
Tue, 29 Sep 2020 16:53:28 +0000 (18:53 +0200)
The id was always 0 so no new systray messages were displayed.

Signed-off-by: Camila <hello@camila.codes>
src/gui/tray/NotificationHandler.cpp

index 70401b21f113c08801a1199f4e6acd9e87d8593e..445d0a88a466f63dda653da31ab3d6a3ee912f58 100644 (file)
@@ -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
+}