diff options
author | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2018-06-12 09:45:26 +0300 |
---|---|---|
committer | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2018-06-12 09:45:26 +0300 |
commit | 36cb62748b1a1c98d64ea3e8cfce0ef1cb5ba0c4 (patch) | |
tree | 9e0af2509e7202f0473f8da347183b6681a3512d /src/ChatPage.cc | |
parent | Add support for displaying decrypted messages (diff) | |
download | nheko-36cb62748b1a1c98d64ea3e8cfce0ef1cb5ba0c4.tar.xz |
Add menu option to enable encryption in a private room
Diffstat (limited to 'src/ChatPage.cc')
-rw-r--r-- | src/ChatPage.cc | 4 |
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) { |