You've already forked element-web
mirror of
https://github.com/element-hq/element-web.git
synced 2025-11-28 09:24:05 +03:00
fix up Start Chat behaviour as per Amandine's feedback
This commit is contained in:
@@ -457,6 +457,15 @@ module.exports = React.createClass({
|
||||
}
|
||||
|
||||
this._updateTabCompleteList(this.state.room);
|
||||
|
||||
// XXX: EVIL HACK to autofocus inviting on empty rooms.
|
||||
// We use the setTimeout to avoid racing with focus_composer.
|
||||
if (this.state.room && this.state.room.getJoinedMembers().length == 1) {
|
||||
var inviteBox = document.getElementById("mx_SearchableEntityList_query");
|
||||
setTimeout(function() {
|
||||
inviteBox.focus();
|
||||
}, 50);
|
||||
}
|
||||
},
|
||||
|
||||
_updateTabCompleteList: function(room) {
|
||||
|
||||
Reference in New Issue
Block a user