diff --git a/xmpp-parsers/src/pubsub/event.rs b/xmpp-parsers/src/pubsub/event.rs index 386760eb..6ad2bc9d 100644 --- a/xmpp-parsers/src/pubsub/event.rs +++ b/xmpp-parsers/src/pubsub/event.rs @@ -6,6 +6,7 @@ use crate::data_forms::DataForm; use crate::date::DateTime; +use crate::message::MessagePayload; use crate::ns; use crate::pubsub::{Item as PubSubItem, ItemId, NodeName, Subscription, SubscriptionId}; use crate::util::error::Error; @@ -241,6 +242,8 @@ impl From for Element { } } +impl MessagePayload for PubSubEvent {} + #[cfg(test)] mod tests { use super::*;