Resolve "Allow creation of new direct chat using matrix id"
This commit is contained in:
parent
21d0370d77
commit
590a6caab2
16 changed files with 251 additions and 180 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue