summary refs log tree commit diff
path: root/src/MainWindow.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2022-03-07 05:26:12 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2022-03-07 05:27:06 +0100
commitac1d6782547223bbd58137cc84ea331477f2438d (patch)
tree19cb8e6334173bf8480c594a8149e452319cfa55 /src/MainWindow.cpp
parentUpdate translations (diff)
downloadnheko-ac1d6782547223bbd58137cc84ea331477f2438d.tar.xz
Fix server switching to https after bootstrap
fixes #878
Diffstat (limited to 'src/MainWindow.cpp')
-rw-r--r--src/MainWindow.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp
index f3893998..73e556f7 100644
--- a/src/MainWindow.cpp
+++ b/src/MainWindow.cpp
@@ -338,8 +338,7 @@ MainWindow::showChatPage()
 {
     auto userid     = QString::fromStdString(http::client()->user_id().to_string());
     auto device_id  = QString::fromStdString(http::client()->device_id());
-    auto homeserver = QString::fromStdString(http::client()->server() + ":" +
-                                             std::to_string(http::client()->port()));
+    auto homeserver = QString::fromStdString(http::client()->server_url());
     auto token      = QString::fromStdString(http::client()->access_token());
 
     userSettings_.data()->setUserId(userid);