From df818317ac80096415a9d1052c3d2fd7f75f9a78 Mon Sep 17 00:00:00 2001 From: tastytea Date: Sat, 19 May 2018 22:47:56 +0200 Subject: [PATCH] get_new_messages(): Return mentions only --- src/masto.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/masto.cpp b/src/masto.cpp index 9b0b4b5..045a555 100644 --- a/src/masto.cpp +++ b/src/masto.cpp @@ -100,7 +100,11 @@ std::vector Listener::get_new_messages() { if (event.first == Easy::event_type::Notification) { - v.push_back(Easy::Notification(event.second)); + Easy::Notification notif(event.second); + if (notif.type() == Easy::notification_type::Mention) + { + v.push_back(notif); + } } } count_empty = 0;