1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-12-24 03:27:59 +01:00

Don't stamp outgoing stanza in ChatManager

Servers are required to stamp the 'from' stanza attribute anyways.
This commit is contained in:
Florian Schmaus 2016-05-18 14:03:07 +02:00
parent 2e2d147083
commit 78cf3006ea

View file

@ -375,10 +375,6 @@ public final class ChatManager extends Manager{
interceptor.getKey().processMessage(message);
}
}
// Ensure that messages being sent have a proper FROM value
if (message.getFrom() == null) {
message.setFrom(connection().getUser());
}
connection().sendStanza(message);
}