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
1 changed files with 0 additions and 4 deletions

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);
}