mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-29 20:28:57 +03:00
Merge pull request #5034 from owncloud/fix-5033
Only accept notification API Capability if endpoint is OCS-enabled
This commit is contained in:
commit
a338b9f269
1 changed files with 2 additions and 1 deletions
|
@ -73,7 +73,8 @@ bool Capabilities::shareResharing() const
|
||||||
|
|
||||||
bool Capabilities::notificationsAvailable() const
|
bool Capabilities::notificationsAvailable() const
|
||||||
{
|
{
|
||||||
return _capabilities.contains("notifications");
|
// We require the OCS style API in 9.x, can't deal with the REST one only found in 8.2
|
||||||
|
return _capabilities.contains("notifications") && _capabilities["notifications"].toMap().contains("ocs-endpoints");
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Capabilities::isValid() const
|
bool Capabilities::isValid() const
|
||||||
|
|
Loading…
Reference in a new issue