summary refs log tree commit diff
path: root/src/ChatPage.cc
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-06-12 09:45:26 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-06-12 09:45:26 +0300
commit36cb62748b1a1c98d64ea3e8cfce0ef1cb5ba0c4 (patch)
tree9e0af2509e7202f0473f8da347183b6681a3512d /src/ChatPage.cc
parentAdd support for displaying decrypted messages (diff)
downloadnheko-36cb62748b1a1c98d64ea3e8cfce0ef1cb5ba0c4.tar.xz
Add menu option to enable encryption in a private room
Diffstat (limited to 'src/ChatPage.cc')
-rw-r--r--src/ChatPage.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ChatPage.cc b/src/ChatPage.cc
index a5a6a8c0..3f43831c 100644
--- a/src/ChatPage.cc
+++ b/src/ChatPage.cc
@@ -245,6 +245,10 @@ ChatPage::ChatPage(QSharedPointer<UserSettings> userSettings, QWidget *parent)
                         return;
 
                 typingRefresher_->stop();
+
+                if (current_room_.isEmpty())
+                        return;
+
                 http::v2::client()->stop_typing(
                   current_room_.toStdString(), [](mtx::http::RequestErr err) {
                           if (err) {