Modify shareeTypes to include 'circles'

Updated shareeTypes to include 'circles' instead of 'teams'.

Signed-off-by: Rello <Rello@users.noreply.github.com>
This commit is contained in:
Rello 2025-09-05 09:03:00 +07:00 committed by Matthieu Gallien
parent bc2ace2ad2
commit b66a381f13

View File

@ -219,7 +219,11 @@ void ShareeModel::shareesFetched(const QJsonDocument &reply)
QVector<ShareePtr> newSharees;
const QStringList shareeTypes{"users", "groups", "emails", "remotes", "teams", "rooms", "lookup"};
const QStringList shareeTypes{"users", "groups", "emails", "remotes", "circles", "rooms", "lookup"};
/*
* this needs to remain as 'circles' because the server api is still promoting this
* parseShare is mapping each share by its share type later
*/
const auto appendSharees = [this, &shareeTypes, &newSharees](const QJsonObject &data) {
for (const auto &shareeType : shareeTypes) {