From 953d8588b94fec779bdf667c024150c9690470c4 Mon Sep 17 00:00:00 2001 From: Linus Jahn Date: Sat, 29 May 2021 19:04:10 +0200 Subject: MucRoom::sendMessage: Improve explanation of the helper function Explain that and how it's possible to send custom messages. --- src/client/QXmppMucManager.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/client/QXmppMucManager.cpp') diff --git a/src/client/QXmppMucManager.cpp b/src/client/QXmppMucManager.cpp index a19cc139..db884792 100644 --- a/src/client/QXmppMucManager.cpp +++ b/src/client/QXmppMucManager.cpp @@ -330,10 +330,15 @@ bool QXmppMucRoom::sendInvitation(const QString &jid, const QString &reason) return d->client->sendPacket(message); } +/// /// Sends a message to the room. /// +/// This is just a helper function, you can as well also send a message to the +/// channel manually by setting the message type to 'groupchat' and addressing +/// the JID of the MUC room. +/// /// \return true if the request was sent, false otherwise - +/// bool QXmppMucRoom::sendMessage(const QString &text) { QXmppMessage msg; -- cgit v1.2.3