You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-13 23:41:50 +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