Merge pull request #3655 from matrix-org/t3chguy/fix_m.room.create_upgrade_notice

Show m.room.create event before the ELS on room upgrade
This commit is contained in:
David Baker 2019-11-22 13:41:36 +00:00 committed by GitHub
commit 7df8ef2f91
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -414,6 +414,11 @@ export default class MessagePanel extends React.Component {
readMarkerInSummary = true;
}
// If this m.room.create event should be shown (room upgrade) then show it before the summary
if (this._shouldShowEvent(mxEv)) {
ret.push(...this._getTilesForEvent(prevEvent, mxEv, false));
}
const summarisedEvents = []; // Don't add m.room.create here as we don't want it inside the summary
for (;i + 1 < this.props.events.length; i++) {
const collapsedMxEv = this.props.events[i + 1];