GroupChatRoom: extract text variable

This commit is contained in:
Sergey Ponomarev
2025-10-20 17:52:28 +03:00
committed by Guus der Kinderen
parent 1c589086f3
commit 421b8db512

View File

@ -1016,9 +1016,11 @@ public class GroupChatRoom extends ChatRoom
return;
}
// Set the body of the message using typedMessage and remove control characters
text = text.replaceAll("[\\u0001-\\u0008\\u000B-\\u001F]", "");
// Set the body of the message using typedMessage and remove control characters
final Message message = new Message();
message.setBody( text.replaceAll( "[\\u0001-\\u0008\\u000B-\\u001F]", "" ) );
message.setBody( text );
sendMessage( message );
}