mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-22 12:02:05 +01:00
Remove XMPPException from MultiUserChat.sendMessage
as it's not actually thrown.
This commit is contained in:
parent
2db5ebb4b7
commit
48aae12ba3
1 changed files with 2 additions and 4 deletions
|
@ -1569,10 +1569,9 @@ public class MultiUserChat {
|
|||
* Sends a message to the chat room.
|
||||
*
|
||||
* @param text the text of the message to send.
|
||||
* @throws XMPPException if sending the message fails.
|
||||
* @throws NotConnectedException
|
||||
*/
|
||||
public void sendMessage(String text) throws XMPPException, NotConnectedException {
|
||||
public void sendMessage(String text) throws NotConnectedException {
|
||||
Message message = createMessage();
|
||||
message.setBody(text);
|
||||
connection.sendStanza(message);
|
||||
|
@ -1606,10 +1605,9 @@ public class MultiUserChat {
|
|||
* Sends a Message to the chat room.
|
||||
*
|
||||
* @param message the message.
|
||||
* @throws XMPPException if sending the message fails.
|
||||
* @throws NotConnectedException
|
||||
*/
|
||||
public void sendMessage(Message message) throws XMPPException, NotConnectedException {
|
||||
public void sendMessage(Message message) throws NotConnectedException {
|
||||
message.setTo(room);
|
||||
message.setType(Message.Type.groupchat);
|
||||
connection.sendStanza(message);
|
||||
|
|
Loading…
Reference in a new issue