Browse Source

get_new_messages(): Return mentions only

tags/0.4.0
tastytea 2 years ago
parent
commit
df818317ac
Signed by: tastytea GPG Key ID: 59346E0EA35C67E5
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      src/masto.cpp

+ 5
- 1
src/masto.cpp View File

@@ -100,7 +100,11 @@ std::vector<Easy::Notification> 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;


Loading…
Cancel
Save