Skip to content
This repository was archived by the owner on Jul 25, 2024. It is now read-only.

Commit c6785de

Browse files
committed
Return the saved server url of the current realm
1 parent bf3d9f1 commit c6785de

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/src/main/java/com/zulip/android/ZulipApp.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,10 @@ public void clearConnectionState() {
143143
* @return either the production or staging server's URI
144144
*/
145145
public String getServerURI() {
146-
if (getEmail().equals("[email protected]")) {
147-
return "http://10.0.2.2:9991/api/";
148-
}
149-
return "https://api.zulip.com/";
146+
// if (getEmail().equals("[email protected]")) {
147+
// return "http://10.0.2.2:9991/api/";
148+
// }
149+
return settings.getString("server_url", "http://10.0.2.2:9991/api/");
150150
}
151151

152152
public String getApiKey() {

0 commit comments

Comments
 (0)