diff --git a/resources/releasedocs/changelog.html b/resources/releasedocs/changelog.html
index 06c247f84..eda807c81 100644
--- a/resources/releasedocs/changelog.html
+++ b/resources/releasedocs/changelog.html
@@ -141,6 +141,17 @@ hr {
+
4.4.2 -- 2021-03-25
+
+
Bug
+
+
+- [SMACK-903] - StaxXmlPullParser.getNamespace() may throws IllegalArgumentException
+
+- [SMACK-904] - XEP-0096 file transfer fails because of a hidden ClastCastException
+
+
+
4.4.1 -- 2021-03-03
Bug
diff --git a/smack-extensions/src/main/java/org/jivesoftware/smack/chat2/ChatManager.java b/smack-extensions/src/main/java/org/jivesoftware/smack/chat2/ChatManager.java
index e8349b6c6..3238dda04 100644
--- a/smack-extensions/src/main/java/org/jivesoftware/smack/chat2/ChatManager.java
+++ b/smack-extensions/src/main/java/org/jivesoftware/smack/chat2/ChatManager.java
@@ -161,7 +161,7 @@ public final class ChatManager extends Manager {
}
final EntityFullJid fullFrom = from.asEntityFullJidIfPossible();
- if (!chat.lockedResource.equals(fullFrom)) {
+ if (chat.lockedResource.equals(fullFrom)) {
return;
}
diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/muc/MultiUserChat.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/muc/MultiUserChat.java
index af1957415..13aeb05ac 100644
--- a/smack-extensions/src/main/java/org/jivesoftware/smackx/muc/MultiUserChat.java
+++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/muc/MultiUserChat.java
@@ -57,6 +57,7 @@ import org.jivesoftware.smack.filter.ToMatchesFilter;
import org.jivesoftware.smack.packet.IQ;
import org.jivesoftware.smack.packet.Message;
import org.jivesoftware.smack.packet.MessageBuilder;
+import org.jivesoftware.smack.packet.MessageView;
import org.jivesoftware.smack.packet.Presence;
import org.jivesoftware.smack.packet.Stanza;
import org.jivesoftware.smack.util.Objects;
@@ -2034,16 +2035,18 @@ public class MultiUserChat {
* Sends a Message to the chat room.
*
* @param messageBuilder the message.
+ * @return a read-only view of the send message.
* @throws NotConnectedException if the XMPP connection is not connected.
* @throws InterruptedException if the calling thread was interrupted.
*/
- public void sendMessage(MessageBuilder messageBuilder) throws NotConnectedException, InterruptedException {
+ public MessageView sendMessage(MessageBuilder messageBuilder) throws NotConnectedException, InterruptedException {
for (MucMessageInterceptor interceptor : messageInterceptors) {
interceptor.intercept(messageBuilder, this);
}
Message message = messageBuilder.to(room).ofType(Message.Type.groupchat).build();
connection.sendStanza(message);
+ return message;
}
/**