diff --git a/src/autocomplete/UserProvider.js b/src/autocomplete/UserProvider.js index 7c86ea7e4b..8b43964b1a 100644 --- a/src/autocomplete/UserProvider.js +++ b/src/autocomplete/UserProvider.js @@ -60,7 +60,7 @@ export default class UserProvider extends AutocompleteProvider { _onRoomTimeline(ev, room, toStartOfTimeline, removed, data) { if (!room) return; if (removed) return; - if (room.roomId != this.room.roomId) return; + if (room.roomId !== this.room.roomId) return; // ignore events from filtered timelines if (data.timeline.getTimelineSet() !== room.getUnfilteredTimelineSet()) return;