You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-28 15:22:05 +03:00
Use the first member event ID or "initial" in the MELS key
This commit is contained in:
@ -301,7 +301,7 @@ module.exports = React.createClass({
|
|||||||
// instead will allow new props to be provided. In turn, the shouldComponentUpdate
|
// instead will allow new props to be provided. In turn, the shouldComponentUpdate
|
||||||
// method on MELS can be used to prevent unnecessary renderings.
|
// method on MELS can be used to prevent unnecessary renderings.
|
||||||
// `prevEvent` at this point is a non-member event or null.
|
// `prevEvent` at this point is a non-member event or null.
|
||||||
const key = "memberlistsummary-" + (prevEvent ? prevEvent.getId() : "");
|
const key = "memberlistsummary-" + (prevEvent ? mxEv.getId() : "initial");
|
||||||
|
|
||||||
if (this._wantsDateSeparator(prevEvent, ts1)) {
|
if (this._wantsDateSeparator(prevEvent, ts1)) {
|
||||||
let dateSeparator = <li key={ts1+'~'}><DateSeparator key={ts1+'~'} ts={ts1}/></li>;
|
let dateSeparator = <li key={ts1+'~'}><DateSeparator key={ts1+'~'} ts={ts1}/></li>;
|
||||||
|
Reference in New Issue
Block a user