From 78cf3006ea760cef2ae89c61fa902eef764bfade Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Wed, 18 May 2016 14:03:07 +0200 Subject: [PATCH] Don't stamp outgoing stanza in ChatManager Servers are required to stamp the 'from' stanza attribute anyways. --- .../main/java/org/jivesoftware/smack/chat/ChatManager.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/smack-im/src/main/java/org/jivesoftware/smack/chat/ChatManager.java b/smack-im/src/main/java/org/jivesoftware/smack/chat/ChatManager.java index 9d7f854e8..ada1e562c 100644 --- a/smack-im/src/main/java/org/jivesoftware/smack/chat/ChatManager.java +++ b/smack-im/src/main/java/org/jivesoftware/smack/chat/ChatManager.java @@ -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); }