mirror of
https://github.com/igniterealtime/Spark.git
synced 2026-02-04 12:15:30 +00:00
GroupChatRoom: extract text variable
This commit is contained in:
committed by
Guus der Kinderen
parent
1c589086f3
commit
421b8db512
@ -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 );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user