get_new_messages(): Return mentions only
This commit is contained in:
parent
784dc4269a
commit
df818317ac
|
@ -100,7 +100,11 @@ std::vector<Easy::Notification> Listener::get_new_messages()
|
||||||
{
|
{
|
||||||
if (event.first == Easy::event_type::Notification)
|
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;
|
count_empty = 0;
|
||||||
|
|
Loading…
Reference in New Issue