Fix Room Create ELS using MXID instead of newly set Displayname/Avatar
parent
2bdd27938a
commit
3b8cb42108
|
@ -443,15 +443,17 @@ module.exports = createReactClass({
|
||||||
// one was itself. This way, the timestamp of the previous event === the
|
// one was itself. This way, the timestamp of the previous event === the
|
||||||
// timestamp of the current event, and no DateSeparator is inserted.
|
// timestamp of the current event, and no DateSeparator is inserted.
|
||||||
return this._getTilesForEvent(e, e, e === lastShownEvent);
|
return this._getTilesForEvent(e, e, e === lastShownEvent);
|
||||||
}).reduce((a, b) => a.concat(b));
|
}).reduce((a, b) => a.concat(b), []);
|
||||||
|
|
||||||
|
// Get sender profile from the latest event in the summary as the m.room.create doesn't contain one
|
||||||
|
const ev = this.props.events[i];
|
||||||
ret.push(<EventListSummary
|
ret.push(<EventListSummary
|
||||||
key="roomcreationsummary"
|
key="roomcreationsummary"
|
||||||
events={summarisedEvents}
|
events={summarisedEvents}
|
||||||
onToggle={this._onHeightChanged} // Update scroll state
|
onToggle={this._onHeightChanged} // Update scroll state
|
||||||
summaryMembers={[mxEv.sender]}
|
summaryMembers={[ev.sender]}
|
||||||
summaryText={_t("%(creator)s created and configured the room.", {
|
summaryText={_t("%(creator)s created and configured the room.", {
|
||||||
creator: mxEv.sender ? mxEv.sender.name : mxEv.getSender(),
|
creator: ev.sender ? ev.sender.name : ev.getSender(),
|
||||||
})}
|
})}
|
||||||
>
|
>
|
||||||
{ eventTiles }
|
{ eventTiles }
|
||||||
|
@ -529,7 +531,7 @@ module.exports = createReactClass({
|
||||||
// one was itself. This way, the timestamp of the previous event === the
|
// one was itself. This way, the timestamp of the previous event === the
|
||||||
// timestamp of the current event, and no DateSeparator is inserted.
|
// timestamp of the current event, and no DateSeparator is inserted.
|
||||||
return this._getTilesForEvent(e, e, e === lastShownEvent);
|
return this._getTilesForEvent(e, e, e === lastShownEvent);
|
||||||
}).reduce((a, b) => a.concat(b));
|
}).reduce((a, b) => a.concat(b), []);
|
||||||
|
|
||||||
if (eventTiles.length === 0) {
|
if (eventTiles.length === 0) {
|
||||||
eventTiles = null;
|
eventTiles = null;
|
||||||
|
|
Loading…
Reference in New Issue