diff --git a/vector/src/main/java/fr/gouv/tchap/activity/TchapRoomCreationActivity.java b/vector/src/main/java/fr/gouv/tchap/activity/TchapRoomCreationActivity.java index 1a1ece8a5..4eaeba1b7 100644 --- a/vector/src/main/java/fr/gouv/tchap/activity/TchapRoomCreationActivity.java +++ b/vector/src/main/java/fr/gouv/tchap/activity/TchapRoomCreationActivity.java @@ -203,7 +203,9 @@ public boolean onOptionsItemSelected(MenuItem item) { // In case of a public room, the room alias is mandatory. // That's why, we deduce the room alias from the room name. - mRoomParams.roomAliasName = mRoomParams.name.trim().replace(" ", ""); + mRoomParams.roomAliasName = mRoomParams.name.trim() + .replace(" ", "") + .replaceAll("[^a-zA-Z0-9]", ""); if (mRoomParams.roomAliasName.contains(":")) { mRoomParams.roomAliasName = mRoomParams.roomAliasName.replace(":", "");