diff --git a/src/plugins/messaging.rs b/src/plugins/messaging.rs index dd206516..c29adc34 100644 --- a/src/plugins/messaging.rs +++ b/src/plugins/messaging.rs @@ -82,7 +82,7 @@ impl MessagingPlugin { } fn handle_message(&self, message: &Message) -> Propagation { - let from = message.from.clone().unwrap(); + let from = message.from.clone().unwrap_or(self.proxy.get_own_jid()); for payload in message.payloads.clone() { let payload = match MessagePayload::try_from(payload) { Ok(payload) => payload,