Clean up data section for internal link in model

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2022-12-13 17:35:40 +01:00
parent bdfa923f8a
commit b4ea35e95c
No known key found for this signature in database
GPG Key ID: C839200C384636B0

View File

@ -130,11 +130,8 @@ QVariant ShareModel::data(const QModelIndex &index, const int role) const
return startOfExpireDayUTC.toMSecsSinceEpoch();
}
}
} else if (share->getShareType() == Share::TypeInternalLink) {
switch(role) {
case LinkRole:
return _privateLinkUrl;
}
} else if (share->getShareType() == Share::TypeInternalLink && role == LinkRole) {
return _privateLinkUrl;
}
switch(role) {