mirror of
https://github.com/vector-im/element-web.git
synced 2025-11-03 01:31:44 +01:00
Show m.room.create event before the ELS on room upgrade
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
cc79afb99d
commit
5ec4b6efcd
@ -411,6 +411,11 @@ module.exports = createReactClass({
|
|||||||
readMarkerInSummary = true;
|
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
|
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++) {
|
for (;i + 1 < this.props.events.length; i++) {
|
||||||
const collapsedMxEv = this.props.events[i + 1];
|
const collapsedMxEv = this.props.events[i + 1];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user