get_new_messages(): Return mentions only

Cette révision appartient à :
tastytea 2018-05-19 22:47:56 +02:00
Parent 784dc4269a
révision df818317ac
Signé par: tastytea
ID de la clé GPG: 59346E0EA35C67E5
1 fichiers modifiés avec 5 ajouts et 1 suppressions

Voir le fichier

@ -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;