mirror of
https://github.com/element-hq/element-web
synced 2024-11-25 02:35:48 +03:00
Pass room into Autocompleter
This commit is contained in:
parent
6ad4bb80dd
commit
7f9967389d
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ export default class Autocomplete extends React.Component {
|
|||
componentWillReceiveProps(newProps, state) {
|
||||
if (this.props.room.roomId !== newProps.room.roomId) {
|
||||
this.autocompleter.destroy();
|
||||
this.autocompleter = new Autocompleter();
|
||||
this.autocompleter = new Autocompleter(newProps.room);
|
||||
}
|
||||
|
||||
// Query hasn't changed so don't try to complete it
|
||||
|
|
Loading…
Reference in a new issue