Change XMPP notification tag from 'clouddevices' to 'weave'
Notification types now have 'weave#' prefix and the old one ('clouddevices#')
is being deprecated. Switching libweave over to using the new tags.
BUG: 25769050
Change-Id: Icfeaa3d7764aaec6faf144d5aac122dea71d7043
Reviewed-on: https://weave-review.googlesource.com/1676
Reviewed-by: Vitaly Buka <vitalybuka@google.com>
diff --git a/src/notification/notification_parser.cc b/src/notification/notification_parser.cc
index 0a27f1c..d7c4f48 100644
--- a/src/notification/notification_parser.cc
+++ b/src/notification/notification_parser.cc
@@ -46,9 +46,9 @@
std::string kind;
if (!notification.GetString("kind", &kind) ||
- kind != "clouddevices#notification") {
+ kind != "weave#notification") {
LOG(WARNING) << "Push notification should have 'kind' property set to "
- "clouddevices#notification";
+ "weave#notification";
return false;
}