always give the correct from JID in messaging
This commit is contained in:
parent
3331ba8f62
commit
b7dc5bd9ea
1 changed files with 1 additions and 1 deletions
|
@ -82,7 +82,7 @@ impl MessagingPlugin {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn handle_message(&self, message: &Message) -> Propagation {
|
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() {
|
for payload in message.payloads.clone() {
|
||||||
let payload = match MessagePayload::try_from(payload) {
|
let payload = match MessagePayload::try_from(payload) {
|
||||||
Ok(payload) => payload,
|
Ok(payload) => payload,
|
||||||
|
|
Loading…
Reference in a new issue