Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RELEASE] 4.1.1 #4189

Merged
merged 11 commits into from
Oct 19, 2023
Prev Previous commit
Next Next commit
Send username correctly for thumbnail request
JuancaG05 committed Oct 17, 2023
commit e455f166dcbde50a05dd3cd4e4fa69621c5bb01b
Original file line number Diff line number Diff line change
@@ -44,6 +44,7 @@
import com.owncloud.android.lib.common.OwnCloudAccount;
import com.owncloud.android.lib.common.OwnCloudClient;
import com.owncloud.android.lib.common.SingleSessionManager;
import com.owncloud.android.lib.common.accounts.AccountUtils;
import com.owncloud.android.lib.common.http.HttpConstants;
import com.owncloud.android.lib.common.http.methods.nonwebdav.GetMethod;
import com.owncloud.android.ui.adapter.DiskLruImageCache;
@@ -259,7 +260,7 @@ private int getThumbnailDimension() {
}

private String getPreviewUrl(OCFile ocFile, Account account) {
String baseUrl = mClient.getBaseUri() + "/remote.php/dav/files/" + account.name.split("@")[0];
String baseUrl = mClient.getBaseUri() + "/remote.php/dav/files/" + AccountUtils.getUserId(account, MainApp.Companion.getAppContext());

if (ocFile.getSpaceId() != null) {
Lazy<GetWebDavUrlForSpaceUseCase> getWebDavUrlForSpaceUseCaseLazy = inject(GetWebDavUrlForSpaceUseCase.class);