From 88aeb6417e8d233e041096ffc0096f9eed879f5d Mon Sep 17 00:00:00 2001 From: Luke Barnard Date: Thu, 15 Dec 2016 18:23:54 +0000 Subject: [PATCH] Use the first member event ID or "initial" in the MELS key --- src/components/structures/MessagePanel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/structures/MessagePanel.js b/src/components/structures/MessagePanel.js index edd227b58e..9eacca2139 100644 --- a/src/components/structures/MessagePanel.js +++ b/src/components/structures/MessagePanel.js @@ -301,7 +301,7 @@ module.exports = React.createClass({ // instead will allow new props to be provided. In turn, the shouldComponentUpdate // method on MELS can be used to prevent unnecessary renderings. // `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)) { let dateSeparator =
  • ;