From b70e80b1ad9a581ac4daeec874949e90f2db2c0a Mon Sep 17 00:00:00 2001 From: Thomas Date: Fri, 11 Aug 2017 10:30:05 +0200 Subject: [PATCH] Keep 4.1.9 chat.sendMessage(String) behavior chat2.Chat.send(String) should have the same behavior as chat.Chat.sendMessage(String) --- .../src/main/java/org/jivesoftware/smack/chat2/Chat.java | 1 + 1 file changed, 1 insertion(+) diff --git a/smack-extensions/src/main/java/org/jivesoftware/smack/chat2/Chat.java b/smack-extensions/src/main/java/org/jivesoftware/smack/chat2/Chat.java index 0db529a8c..2dd93d9ed 100644 --- a/smack-extensions/src/main/java/org/jivesoftware/smack/chat2/Chat.java +++ b/smack-extensions/src/main/java/org/jivesoftware/smack/chat2/Chat.java @@ -42,6 +42,7 @@ public final class Chat extends Manager { public void send(CharSequence message) throws NotConnectedException, InterruptedException { Message stanza = new Message(); stanza.setBody(message); + stanza.setType(Message.Type.chat); send(stanza); }