summary refs log tree commit diff
path: root/src/MainWindow.cpp
diff options
context:
space:
mode:
authorDeepBlueV7.X <nicolas.werner@hotmail.de>2021-07-30 22:08:51 +0000
committerGitHub <noreply@github.com>2021-07-30 22:08:51 +0000
commit5b5a89b52217b672bf31c26ccd6e2a3b6f15a942 (patch)
tree0f076e6b6ee36e6fd8258bbcf677a779b6b794c3 /src/MainWindow.cpp
parentFix crash when we don't have keys for other device when receiving an olm mess... (diff)
parentUse correct date format (diff)
downloadnheko-5b5a89b52217b672bf31c26ccd6e2a3b6f15a942.tar.xz
Merge pull request #655 from LorenDB/qml-all-the-things
QML all the things, part 2: Read receipts dialog
Diffstat (limited to 'src/MainWindow.cpp')
-rw-r--r--src/MainWindow.cpp22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp

index c0486d01..8bc90f29 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp
@@ -36,7 +36,6 @@ #include "dialogs/JoinRoom.h" #include "dialogs/LeaveRoom.h" #include "dialogs/Logout.h" -#include "dialogs/ReadReceipts.h" MainWindow *MainWindow::instance_ = nullptr; @@ -398,27 +397,6 @@ MainWindow::openLogoutDialog() showDialog(dialog); } -void -MainWindow::openReadReceiptsDialog(const QString &event_id) -{ - auto dialog = new dialogs::ReadReceipts(this); - - const auto room_id = chat_page_->currentRoom(); - - try { - dialog->addUsers(cache::readReceipts(event_id, room_id)); - } catch (const lmdb::error &) { - nhlog::db()->warn("failed to retrieve read receipts for {} {}", - event_id.toStdString(), - chat_page_->currentRoom().toStdString()); - dialog->deleteLater(); - - return; - } - - showDialog(dialog); -} - bool MainWindow::hasActiveDialogs() const {