@@ -16,21 +16,23 @@ namespace OCC
1616Q_LOGGING_CATEGORY (lcUpdateE2eeFolderUsersMetadataJob, " nextcloud.gui.updatee2eefolderusersmetadatajob" , QtInfoMsg)
1717
1818UpdateE2eeFolderUsersMetadataJob::UpdateE2eeFolderUsersMetadataJob (const AccountPtr &account,
19- SyncJournalDb *journalDb,
20- const QString &syncFolderRemotePath,
21- const Operation operation,
22- const QString &fullRemotePath,
23- const QString &folderUserId,
24- const QSslCertificate &certificate,
25- QObject *parent)
26- : QObject(parent)
27- , _account(account)
28- , _journalDb(journalDb)
29- , _syncFolderRemotePath(Utility::noLeadingSlashPath(Utility::noTrailingSlashPath(syncFolderRemotePath)))
30- , _operation(operation)
31- , _fullRemotePath(Utility::noLeadingSlashPath(fullRemotePath))
32- , _folderUserId(folderUserId)
33- , _folderUserCertificate(certificate)
19+ SyncJournalDb *journalDb,
20+ const QString &syncFolderRemotePath,
21+ const Operation operation,
22+ const QString &fullRemotePath,
23+ const QString &folderUserId,
24+ const QString &folderUserDisplayName,
25+ const QSslCertificate &certificate,
26+ QObject *parent)
27+ : QObject{parent}
28+ , _account{account}
29+ , _journalDb{journalDb}
30+ , _syncFolderRemotePath{Utility::noLeadingSlashPath (Utility::noTrailingSlashPath (syncFolderRemotePath))}
31+ , _operation{operation}
32+ , _fullRemotePath{Utility::noLeadingSlashPath (fullRemotePath)}
33+ , _folderUserId{folderUserId}
34+ , _folderUserDisplayName{folderUserDisplayName}
35+ , _folderUserCertificate{certificate}
3436{
3537 Q_ASSERT (_syncFolderRemotePath == QStringLiteral (" /" ) || _fullRemotePath.startsWith (_syncFolderRemotePath));
3638 SyncJournalFileRecord rec;
@@ -78,7 +80,7 @@ void UpdateE2eeFolderUsersMetadataJob::start(const bool keepLock)
7880void UpdateE2eeFolderUsersMetadataJob::slotStartE2eeMetadataJobs ()
7981{
8082 if (_operation == Operation::Add && _folderUserCertificate.isNull ()) {
81- emit finished (404 , tr (" Could not fetch public key for user %1" ).arg (_folderUserId ));
83+ emit finished (404 , tr (" Could not fetch public key for user %1" ).arg (_folderUserDisplayName ));
8284 return ;
8385 }
8486
@@ -106,7 +108,7 @@ void UpdateE2eeFolderUsersMetadataJob::slotFetchMetadataJobFinished(int statusCo
106108 }
107109
108110 if (!_encryptedFolderMetadataHandler->folderMetadata () || !_encryptedFolderMetadataHandler->folderMetadata ()->isValid ()) {
109- emit finished (403 , tr (" Could not add or remove user %1 to access folder %2" ).arg (_folderUserId ).arg (_fullRemotePath));
111+ emit finished (403 , tr (" Could not add or remove user %1 to access folder %2" ).arg (_folderUserDisplayName ).arg (_fullRemotePath));
110112 return ;
111113 }
112114 startUpdate ();
0 commit comments