mirror of
https://github.com/status-im/snorenotify.git
synced 2025-02-17 02:46:23 +00:00
better to check if the notification origins in the frontend
This commit is contained in:
parent
19a89f9e47
commit
cbe10a3619
@ -56,7 +56,7 @@ bool SnarlNetworkFrontend::init(SnoreCore *snore){
|
||||
void SnarlNetworkFrontend::actionInvoked(Notification notification)
|
||||
{
|
||||
//TODO:fix callback
|
||||
if(notifications.contains(notification.id()))
|
||||
if(notification.source() == this)
|
||||
{
|
||||
SnarlNotification sn=notifications.value(notification.id());
|
||||
if(notification.actionInvoked().id() == 1 )
|
||||
@ -71,7 +71,7 @@ void SnarlNetworkFrontend::actionInvoked(Notification notification)
|
||||
}
|
||||
void SnarlNetworkFrontend::notificationClosed(Notification notification)
|
||||
{
|
||||
if(notifications.contains(notification.id()))
|
||||
if(notification.source() == this)
|
||||
{
|
||||
SnarlNotification sn=notifications.value(notification.id());
|
||||
if(notification.closeReason() == NotificationEnums::CloseReasons::TIMED_OUT)
|
||||
|
Loading…
x
Reference in New Issue
Block a user