Resolve "Allow creation of new direct chat using matrix id"

This commit is contained in:
N Pex 2022-12-12 16:10:53 +00:00
parent 21d0370d77
commit 590a6caab2
16 changed files with 251 additions and 180 deletions

View file

@ -431,6 +431,13 @@ class Util {
return null;
}
sanitizeUserId(userId) {
if (userId && userId.match(/^@.+$/)) {
return userId;
}
return null;
}
getFirstVisibleElement(parentNode) {
const visible = this.findVisibleElements(parentNode);
if (visible && visible.length > 0) {