From e6593cb2006ec33a42a9672e99fa6b34425cec69 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Tue, 30 Dec 2014 12:13:12 +0100 Subject: [PATCH] Use createMessage() where possible in MultiUserChat --- .../main/java/org/jivesoftware/smackx/muc/MultiUserChat.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/muc/MultiUserChat.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/muc/MultiUserChat.java index 3feff0269..e85d4100f 100644 --- a/smack-extensions/src/main/java/org/jivesoftware/smackx/muc/MultiUserChat.java +++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/muc/MultiUserChat.java @@ -1551,7 +1551,7 @@ public class MultiUserChat { * @throws NotConnectedException */ public void sendMessage(String text) throws XMPPException, NotConnectedException { - Message message = new Message(room, Message.Type.groupchat); + Message message = createMessage(); message.setBody(text); connection.sendPacket(message); } @@ -1682,7 +1682,7 @@ public class MultiUserChat { * @throws NotConnectedException */ public void changeSubject(final String subject) throws NoResponseException, XMPPErrorException, NotConnectedException { - Message message = new Message(room, Message.Type.groupchat); + Message message = createMessage(); message.setSubject(subject); // Wait for an error or confirmation message back from the server. PacketFilter responseFilter = new AndFilter(fromRoomGroupchatFilter, new PacketFilter() {