diff --git a/vector/src/main/java/im/vector/activity/LoginActivity.java b/vector/src/main/java/im/vector/activity/LoginActivity.java index 809a3b76fe..957eae6a47 100644 --- a/vector/src/main/java/im/vector/activity/LoginActivity.java +++ b/vector/src/main/java/im/vector/activity/LoginActivity.java @@ -46,13 +46,13 @@ import android.widget.Toast; import androidx.annotation.NonNull; +import androidx.annotation.Nullable; import androidx.appcompat.app.AlertDialog; import androidx.transition.TransitionManager; import com.google.android.material.textfield.TextInputEditText; import com.google.android.material.textfield.TextInputLayout; -import org.jetbrains.annotations.Nullable; import org.matrix.androidsdk.HomeServerConnectionConfig; import org.matrix.androidsdk.MXSession; import org.matrix.androidsdk.core.JsonUtils; @@ -1292,8 +1292,7 @@ public void onSuccess(Boolean info) { private void doForgetPasswordRequest(HomeServerConnectionConfig hsConfig, String email, @Nullable String identityServerHost) { ProfileRestClient pRest = new ProfileRestClient(hsConfig); - - pRest.forgetPassword(email, new ApiCallback() { + pRest.forgetPassword(hsConfig.getIdentityServerUri(), email, new ApiCallback() { @Override public void onSuccess(ThreePid thirdPid) { if (mMode == MODE_FORGOT_PASSWORD) { diff --git a/vector/src/main/java/im/vector/activity/VectorRoomCreationActivity.java b/vector/src/main/java/im/vector/activity/VectorRoomCreationActivity.java index 9a1a68744a..eb8e09f4c1 100755 --- a/vector/src/main/java/im/vector/activity/VectorRoomCreationActivity.java +++ b/vector/src/main/java/im/vector/activity/VectorRoomCreationActivity.java @@ -434,7 +434,7 @@ private void createRoom(final List participants) { } } - boolean res = params.addParticipantIds(mSession.getHomeServerConfig(), ids); + boolean res = params.addParticipantIds(mSession.getIdentityServerManager().getIdentityServerUri(), mSession.getHomeServerConfig(), ids); if (res) { Toast.makeText(this, R.string.identity_server_not_defined, Toast.LENGTH_LONG).show();