Skip to content
This repository has been archived by the owner on Apr 12, 2022. It is now read-only.

Room creation: remove special character from the room link #599

Merged
merged 2 commits into from
Jun 29, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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("[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]", "");
giomfo marked this conversation as resolved.
Show resolved Hide resolved

if (mRoomParams.roomAliasName.contains(":")) {
mRoomParams.roomAliasName = mRoomParams.roomAliasName.replace(":", "");
Expand Down