Commit fe441960 authored by Filipe de Lima Brito's avatar Filipe de Lima Brito Committed by Leonardo Aramaki

Update InputHostnamePresenter.java

parent 9e0d70f3
......@@ -53,8 +53,8 @@ public class InputHostnamePresenter extends BasePresenter<InputHostnameContract.
private void onServerValid(String hostname, boolean usesSecureConnection) {
rocketChatCache.setSelectedServerHostname(hostname);
hostname = hostname.replace("/", ".");
connectivityManager.addOrUpdateServer(hostname, hostname, !usesSecureConnection);
String server = hostname.replace("/", ".");
connectivityManager.addOrUpdateServer(server, server, !usesSecureConnection);
connectivityManager.keepAliveServer();
view.showHome();
......
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