You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-12 12:41:46 +03:00
Merge commit '26e6632' into rav/roomview_works
This commit is contained in:
@ -728,6 +728,7 @@ module.exports = React.createClass({
|
|||||||
var result = this.state.searchResults.results[i];
|
var result = this.state.searchResults.results[i];
|
||||||
|
|
||||||
var mxEv = result.context.getEvent();
|
var mxEv = result.context.getEvent();
|
||||||
|
var roomId = mxEv.getRoomId();
|
||||||
|
|
||||||
if (!EventTile.haveTileForEvent(mxEv)) {
|
if (!EventTile.haveTileForEvent(mxEv)) {
|
||||||
// XXX: can this ever happen? It will make the result count
|
// XXX: can this ever happen? It will make the result count
|
||||||
@ -736,7 +737,6 @@ module.exports = React.createClass({
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (this.state.searchScope === 'All') {
|
if (this.state.searchScope === 'All') {
|
||||||
var roomId = mxEv.getRoomId();
|
|
||||||
if(roomId != lastRoomId) {
|
if(roomId != lastRoomId) {
|
||||||
var room = cli.getRoom(roomId);
|
var room = cli.getRoom(roomId);
|
||||||
|
|
||||||
@ -753,7 +753,7 @@ module.exports = React.createClass({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var resultLink = "#/room/"+this.props.roomId+"/"+mxEv.getId();
|
var resultLink = "#/room/"+roomId+"/"+mxEv.getId();
|
||||||
|
|
||||||
ret.push(<SearchResultTile key={mxEv.getId()}
|
ret.push(<SearchResultTile key={mxEv.getId()}
|
||||||
searchResult={result}
|
searchResult={result}
|
||||||
|
Reference in New Issue
Block a user