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

Keep 4.1.9 chat.sendMessage(String) behavior

chat2.Chat.send(String) should have the same behavior as chat.Chat.sendMessage(String)
This commit is contained in:
Thomas 2017-08-11 10:30:05 +02:00 committed by GitHub
parent 7f851d806c
commit b70e80b1ad

View file

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