summaryrefslogtreecommitdiffstats
path: root/jingle
diff options
context:
space:
mode:
Diffstat (limited to 'jingle')
-rw-r--r--jingle/notifier/listener/push_notifications_listen_task.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/jingle/notifier/listener/push_notifications_listen_task.cc b/jingle/notifier/listener/push_notifications_listen_task.cc
index ecf7b95..90b5c0a 100644
--- a/jingle/notifier/listener/push_notifications_listen_task.cc
+++ b/jingle/notifier/listener/push_notifications_listen_task.cc
@@ -92,8 +92,9 @@ bool PushNotificationsListenTask::IsValidNotification(
// <data>{base-64 data}</data>
// </push>
// </message>
- return ((stanza->Name() == buzz::QN_MESSAGE) &&
- (stanza->Attr(buzz::QN_TO) == GetClient()->jid().Str()));
+ // We don't do much validation here, just check if the stanza is a message
+ // stanza.
+ return (stanza->Name() == buzz::QN_MESSAGE);
}
} // namespace notifier