You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-18 09:22:18 +03:00
Explain why search results are cleared when eventId changes
This commit is contained in:
@ -170,6 +170,8 @@ module.exports = React.createClass({
|
|||||||
isEventHighlighted: RoomViewStore.isEventHighlighted(),
|
isEventHighlighted: RoomViewStore.isEventHighlighted(),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Clear the search results when clicking a search result (which changes the
|
||||||
|
// currently scrolled to event, this.state.eventId).
|
||||||
if (this.state.eventId !== newState.eventId) {
|
if (this.state.eventId !== newState.eventId) {
|
||||||
newState.searchResults = null;
|
newState.searchResults = null;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user