summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorJoseph Donofry <joedonofry@gmail.com>2019-08-19 18:54:17 -0400
committerJoseph Donofry <joedonofry@gmail.com>2019-08-19 18:54:17 -0400
commit8d04236fbde0e7ab7c57d3bd624c7ce34a944340 (patch)
tree1ed4f7eebf2453b4ce413a40b08d1a1ad773eae8 /src
parentUpdate README with S3 nightlies listing (diff)
downloadnheko-8d04236fbde0e7ab7c57d3bd624c7ce34a944340.tar.xz
Fix build issues w/ clang
Diffstat (limited to 'src')
-rw-r--r--src/Cache.cpp2
-rw-r--r--src/ChatPage.cpp2
2 files changed, 1 insertions, 3 deletions
diff --git a/src/Cache.cpp b/src/Cache.cpp

index d264b541..eee75f25 100644 --- a/src/Cache.cpp +++ b/src/Cache.cpp
@@ -1993,8 +1993,6 @@ Cache::getTimelineMentionsForRoom(lmdb::txn &txn, const std::string &room_id) void Cache::saveTimelineMentions(const mtx::responses::Notifications &res) { - json notif = res; - QMap<std::string, QList<mtx::responses::Notification>> notifsByRoom; // Sort into room-specific 'buckets' diff --git a/src/ChatPage.cpp b/src/ChatPage.cpp
index 854d57d7..2ed64b6b 100644 --- a/src/ChatPage.cpp +++ b/src/ChatPage.cpp
@@ -526,7 +526,7 @@ ChatPage::ChatPage(QSharedPointer<UserSettings> userSettings, QWidget *parent) connect(this, &ChatPage::highlightedNotifsRetrieved, this, - [this](const mtx::responses::Notifications &notif) { + [](const mtx::responses::Notifications &notif) { try { cache::client()->saveTimelineMentions(notif); } catch (const lmdb::error &e) {