Use consistent account ID type in fileproviderdomainmanager

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2023-03-11 01:23:13 +01:00
parent 79d89c21c7
commit 0a258f818b
No known key found for this signature in database
GPG key ID: C839200C384636B0

View file

@ -99,7 +99,7 @@ class FileProviderDomainManager::Private {
void removeFileProviderDomain(const AccountState *accountState) void removeFileProviderDomain(const AccountState *accountState)
{ {
const QString accountId = accountState->account()->id(); const QString accountId = accountState->account()->userIdAtHostWithPort();
qCDebug(lcMacFileProviderDomainManager) << "Removing file provider domain for account with id: " << accountId; qCDebug(lcMacFileProviderDomainManager) << "Removing file provider domain for account with id: " << accountId;
if(!_registeredDomains.contains(accountId)) { if(!_registeredDomains.contains(accountId)) {
@ -162,7 +162,7 @@ class FileProviderDomainManager::Private {
void signalEnumeratorChanged(const Account * const account) void signalEnumeratorChanged(const Account * const account)
{ {
const auto accountId = account->id(); const auto accountId = account->userIdAtHostWithPort();
qCDebug(lcMacFileProviderDomainManager) << "Signalling enumerator changed in file provider domain for account with id: " << accountId; qCDebug(lcMacFileProviderDomainManager) << "Signalling enumerator changed in file provider domain for account with id: " << accountId;
if(!_registeredDomains.contains(accountId)) { if(!_registeredDomains.contains(accountId)) {