diff --git a/src/components/structures/MessagePanel.js b/src/components/structures/MessagePanel.js index d1cc1b7caf..c6f218377a 100644 --- a/src/components/structures/MessagePanel.js +++ b/src/components/structures/MessagePanel.js @@ -693,6 +693,10 @@ export default class MessagePanel extends React.Component { const readReceipts = this._readReceiptsByEvent[eventId]; + // Dev note: `this._isUnmounting.bind(this)` is important - it ensures that + // the function is run in the context of this class and not EventTile, therefore + // ensuring the right `this._mounted` variable is used by read receipts (which + // don't update their position if we, the MessagePanel, is unmounting). ret.push(