Fix build issues w/ clang

This commit is contained in:
Joseph Donofry 2019-08-19 18:54:17 -04:00
parent 6a14188cc4
commit 8d04236fbd
No known key found for this signature in database
GPG key ID: E8A1D78EF044B0CB
2 changed files with 1 additions and 3 deletions

View file

@ -1993,8 +1993,6 @@ Cache::getTimelineMentionsForRoom(lmdb::txn &txn, const std::string &room_id)
void void
Cache::saveTimelineMentions(const mtx::responses::Notifications &res) Cache::saveTimelineMentions(const mtx::responses::Notifications &res)
{ {
json notif = res;
QMap<std::string, QList<mtx::responses::Notification>> notifsByRoom; QMap<std::string, QList<mtx::responses::Notification>> notifsByRoom;
// Sort into room-specific 'buckets' // Sort into room-specific 'buckets'

View file

@ -526,7 +526,7 @@ ChatPage::ChatPage(QSharedPointer<UserSettings> userSettings, QWidget *parent)
connect(this, connect(this,
&ChatPage::highlightedNotifsRetrieved, &ChatPage::highlightedNotifsRetrieved,
this, this,
[this](const mtx::responses::Notifications &notif) { [](const mtx::responses::Notifications &notif) {
try { try {
cache::client()->saveTimelineMentions(notif); cache::client()->saveTimelineMentions(notif);
} catch (const lmdb::error &e) { } catch (const lmdb::error &e) {