Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
* @return
*/
+ bool _shouldNotify = true;
[[nodiscard]] Identifier ident() const;
};
}
}
+ if (json.contains("shouldNotify")) {
+ a._shouldNotify = json.value("shouldNotify").toBool(true);
+ }
+
// 2 cases to consider:
// 1. server == 24 & has Talk: object_type is chat/call/room & object_id contains conversationToken/messageId
// 2. server < 24 & has Talk: object_type is chat/call/room & object_id contains _only_ conversationToken
qCInfo(lcActivity) << "Activity already notified, skip";
return false;
}
+ if (!activity._shouldNotify) {
+ qCDebug(lcActivity) << "Activity should not be notified";
+ return false;
+ }
return true;
});
if(systray) {
for(const auto &activity : list) {
+ if (!activity._shouldNotify) {
+ qCDebug(lcActivity) << "Activity should not be notified";
+ continue;
+ }
+
systray->createCallDialog(activity, _account);
}
}