File tree Expand file tree Collapse file tree
app/src/main/java/com/owncloud/android/datamodel Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1542,17 +1542,17 @@ private ContentValues createContentValueForRemoteFile(RemoteFile remoteFile) {
15421542 boolean isDirectory = MimeTypeUtil .isFolder (remoteFile .getMimeType ());
15431543 contentValues .put (ProviderTableMeta .OCSHARES_IS_DIRECTORY , isDirectory );
15441544 contentValues .put (ProviderTableMeta .OCSHARES_ACCOUNT_OWNER , user .getAccountName ());
1545+ contentValues .put (ProviderTableMeta .OCSHARES_USER_ID , remoteFile .getOwnerId ());
15451546
15461547 if (remoteFile .getSharees ().length > 0 ) {
15471548 final var sharee = remoteFile .getSharees ()[0 ];
15481549 contentValues .put (ProviderTableMeta .OCSHARES_SHARE_WITH_DISPLAY_NAME , sharee .getDisplayName ());
1550+ contentValues .put (ProviderTableMeta .OCSHARES_SHARE_WITH , sharee .getUserId ());
15491551
15501552 ShareType shareType = sharee .getShareType ();
15511553 if (shareType != null ) {
15521554 contentValues .put (ProviderTableMeta .OCSHARES_SHARE_TYPE , shareType .getValue ());
15531555 }
1554-
1555- contentValues .put (ProviderTableMeta .OCSHARES_USER_ID , sharee .getUserId ());
15561556 }
15571557
15581558 if (!remoteFile .getFileDownloadLimit ().isEmpty ()) {
You can’t perform that action at this time.
0 commit comments