update to use new API based on js-sdk PR input
This commit is contained in:
parent
3c7864a7ad
commit
4aef352a5c
6 changed files with 16 additions and 8 deletions
|
@ -342,6 +342,9 @@ module.exports = React.createClass({
|
|||
// ignore events for other rooms
|
||||
if (!this.state.room || room.roomId != this.state.room.roomId) return;
|
||||
|
||||
// ignore events from filtered timelines
|
||||
if (data.timeline.getTimelineSet() !== room.getUnfilteredTimelineSet()) return;
|
||||
|
||||
if (ev.getType() === "org.matrix.room.preview_urls") {
|
||||
this._updatePreviewUrlVisibility(room);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue