fix wrong usages

Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
alperozturk 2025-06-11 14:08:34 +02:00
parent 77ae16fab8
commit 4d732c0c88
No known key found for this signature in database
GPG Key ID: 4E577DC593B59BDF

View File

@ -1542,17 +1542,17 @@ public class FileDataStorageManager {
boolean isDirectory = MimeTypeUtil.isFolder(remoteFile.getMimeType());
contentValues.put(ProviderTableMeta.OCSHARES_IS_DIRECTORY, isDirectory);
contentValues.put(ProviderTableMeta.OCSHARES_ACCOUNT_OWNER, user.getAccountName());
contentValues.put(ProviderTableMeta.OCSHARES_USER_ID, remoteFile.getOwnerId());
if (remoteFile.getSharees().length > 0) {
final var sharee = remoteFile.getSharees()[0];
contentValues.put(ProviderTableMeta.OCSHARES_SHARE_WITH_DISPLAY_NAME, sharee.getDisplayName());
contentValues.put(ProviderTableMeta.OCSHARES_SHARE_WITH, sharee.getUserId());
ShareType shareType = sharee.getShareType();
if (shareType != null) {
contentValues.put(ProviderTableMeta.OCSHARES_SHARE_TYPE, shareType.getValue());
}
contentValues.put(ProviderTableMeta.OCSHARES_USER_ID, sharee.getUserId());
}
if (!remoteFile.getFileDownloadLimit().isEmpty()) {