mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 15:06:08 +03:00
Use accountStateFromFileProviderDomainIdentifier method in authenticateExtension
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
6d4e785ebb
commit
43b7ae55df
1 changed files with 2 additions and 3 deletions
|
@ -17,6 +17,7 @@
|
|||
#include <QLoggingCategory>
|
||||
|
||||
#include "gui/accountmanager.h"
|
||||
#include "gui/macOS/fileproviderdomainmanager.h"
|
||||
#include "gui/macOS/fileproviderxpc_mac_utils.h"
|
||||
|
||||
namespace OCC::Mac {
|
||||
|
@ -48,9 +49,7 @@ void FileProviderXPC::configureExtensions()
|
|||
|
||||
void FileProviderXPC::authenticateExtension(const QString &extensionAccountId) const
|
||||
{
|
||||
const auto accountManager = AccountManager::instance();
|
||||
Q_ASSERT(accountManager);
|
||||
const auto accountState = accountManager->accountFromUserId(extensionAccountId);
|
||||
const auto accountState = FileProviderDomainManager::accountStateFromFileProviderDomainIdentifier(extensionAccountId);
|
||||
if (!accountState) {
|
||||
qCWarning(lcFileProviderXPC) << "Account state is null for received account"
|
||||
<< extensionAccountId;
|
||||
|
|
Loading…
Reference in a new issue