adjust to js-sdk changes of marking original event as replaced

This commit is contained in:
Bruno Windels 2019-05-15 11:49:43 +01:00
parent edc100163f
commit 5805a88ab9
8 changed files with 11 additions and 5 deletions

View file

@ -507,7 +507,7 @@ const TimelinePanel = React.createClass({
this.forceUpdate();
},
onRoomReplaceEvent: function(replacedEvent, newEvent, room) {
onRoomReplaceEvent: function(replacedEvent, room) {
if (this.unmounted) return;
// ignore events for other rooms
@ -515,7 +515,7 @@ const TimelinePanel = React.createClass({
// we could skip an update if the event isn't in our timeline,
// but that's probably an early optimisation.
this._reloadEvents();
this.forceUpdate();
},
onRoomReceipt: function(ev, room) {