mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 20:38:55 +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) {
|
componentWillReceiveProps(newProps, state) {
|
||||||
if (this.props.room.roomId !== newProps.room.roomId) {
|
if (this.props.room.roomId !== newProps.room.roomId) {
|
||||||
this.autocompleter.destroy();
|
this.autocompleter.destroy();
|
||||||
this.autocompleter = new Autocompleter();
|
this.autocompleter = new Autocompleter(newProps.room);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Query hasn't changed so don't try to complete it
|
// Query hasn't changed so don't try to complete it
|
||||||
|
|
Loading…
Reference in a new issue