Merge pull request #3663 from matrix-org/dbkr/itsadoubledate_rel

Fix double date separator for room upgrade tiles
pull/21833/head
David Baker 2019-11-22 16:41:06 +00:00 committed by GitHub
commit 731efbacf2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -413,7 +413,8 @@ module.exports = createReactClass({
// If this m.room.create event should be shown (room upgrade) then show it before the summary // If this m.room.create event should be shown (room upgrade) then show it before the summary
if (this._shouldShowEvent(mxEv)) { if (this._shouldShowEvent(mxEv)) {
ret.push(...this._getTilesForEvent(prevEvent, mxEv, false)); // pass in the mxEv as prevEvent as well so no extra DateSeparator is rendered
ret.push(...this._getTilesForEvent(mxEv, mxEv, false));
} }
const summarisedEvents = []; // Don't add m.room.create here as we don't want it inside the summary const summarisedEvents = []; // Don't add m.room.create here as we don't want it inside the summary