The MultiUserChat class exposes a buildMessage() method, which builds a MessageBuilder using the connection’s stanzaFactory and sets the type as groupchat.
There is no analogous method in org.jivesoftware.smack.chat2.Chat. We have a send(CharSequence) method that does the same work of using the connection’s stanzaFactory and setting the message type, but there’s a clear disparity in the API.
In our client code we currently build a MessageBuilder using the static MessageBuilder.buildMessage(StandardStanzaIdSource.DEFAULT.newStanzaId) and pass this to chat#send(Message) after adding a body and maybe changing the stanza ID.
Can we expose a buildMessage() method on the Chat class? What’s the ideal API we’re trying to work towards?
Thanks.