Commit 3d325cdf authored by Leonardo Aramaki's avatar Leonardo Aramaki

Lowercase the hostname before adding

parent 22cd56bb
...@@ -137,7 +137,7 @@ public class MainPresenter extends BasePresenter<MainContract.View> ...@@ -137,7 +137,7 @@ public class MainPresenter extends BasePresenter<MainContract.View>
JSONObject jsonObject = new JSONObject(publicSetting.getValue()); JSONObject jsonObject = new JSONObject(publicSetting.getValue());
String logoUrl = (jsonObject.has("url")) ? String logoUrl = (jsonObject.has("url")) ?
jsonObject.optString("url") : jsonObject.optString("defaultUrl"); jsonObject.optString("url") : jsonObject.optString("defaultUrl");
rocketChatCache.addHostname(hostname, logoUrl); rocketChatCache.addHostname(hostname.toLowerCase(), logoUrl);
return rocketChatCache.getServerList(); return rocketChatCache.getServerList();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment