mirror of
https://gitlab.com/xmpp-rs/xmpp-rs.git
synced 2024-07-12 22:21:53 +00:00
Merge branch 'messaging-from' into 'master'
Always give the correct from JID in messaging See merge request !24
This commit is contained in:
commit
cdc968a70b
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue