Add desktopEnterpriseChannel to the capabilities check.

Signed-off-by: Camila Ayres <hello@camilasan.com>
This commit is contained in:
Camila Ayres 2024-07-03 15:13:55 +02:00
parent 0274cd912b
commit 4884fbee87
No known key found for this signature in database
GPG key ID: 7A4A6121E88E2AD4
2 changed files with 7 additions and 0 deletions

View file

@ -13,6 +13,7 @@
*/
#include "capabilities.h"
#include "configfile.h"
#include <QVariantMap>
#include <QLoggingCategory>
@ -393,6 +394,11 @@ bool Capabilities::serverHasValidSubscription() const
return _capabilities[QStringLiteral("support")].toMap().value(QStringLiteral("hasValidSubscription"), false).toBool();
}
QString Capabilities::desktopEnterpriseChannel() const
{
return _capabilities[QStringLiteral("support")].toMap().value(QStringLiteral("desktopEnterpriseChannel"), ConfigFile().defaultUpdateChannel()).toString();
}
QStringList Capabilities::blacklistedFiles() const
{
return _capabilities["files"].toMap()["blacklisted_files"].toStringList();

View file

@ -174,6 +174,7 @@ public:
[[nodiscard]] bool groupFoldersAvailable() const;
[[nodiscard]] bool serverHasValidSubscription() const;
[[nodiscard]] QString desktopEnterpriseChannel() const;
// Direct Editing
void addDirectEditor(DirectEditor* directEditor);