mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-28 19:58:56 +03:00
Build shareOwnerAvatar image provider string when handling sharedWithMe share in ShareModel
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
380fe4a172
commit
97ae48e17d
1 changed files with 8 additions and 4 deletions
|
@ -491,11 +491,16 @@ void ShareModel::slotSharesFetched(const QList<SharePtr> &shares)
|
|||
for (const auto &share : shares) {
|
||||
if (share.isNull()) {
|
||||
continue;
|
||||
} else if (const auto selfUserId = _accountState->account()->davUser(); share->getUidOwner() != selfUserId) {
|
||||
} else if (const auto selfUserId = share->account()->davUser(); share->getUidOwner() != selfUserId) {
|
||||
_displayShareOwner = true;
|
||||
Q_EMIT displayShareOwnerChanged();
|
||||
_shareOwnerDisplayName = share->getOwnerDisplayName();
|
||||
Q_EMIT shareOwnerDisplayNameChanged();
|
||||
_shareOwnerAvatar = "image://avatars/user-id="
|
||||
+ share->getUidOwner()
|
||||
+ "/local-account:"
|
||||
+ share->account()->displayName();
|
||||
Q_EMIT shareOwnerAvatarChanged();
|
||||
|
||||
if (share->getShareType() == Share::TypeUser &&
|
||||
share->getShareWith() &&
|
||||
|
@ -513,10 +518,9 @@ void ShareModel::slotSharesFetched(const QList<SharePtr> &shares)
|
|||
: tr("Today");
|
||||
Q_EMIT sharedWithMeRemainingTimeStringChanged();
|
||||
}
|
||||
continue;
|
||||
} else {
|
||||
slotAddShare(share);
|
||||
}
|
||||
|
||||
slotAddShare(share);
|
||||
}
|
||||
|
||||
// Perform forward pass on shares and check for duplicate display names; store these indeces so
|
||||
|
|
Loading…
Reference in a new issue