From 702f0613410b41098fef3e6379b894db35454d90 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Sun, 8 Dec 2019 12:45:59 +0000 Subject: [PATCH] ref is used earlier so assign it earlier Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/components/structures/TimelinePanel.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/structures/TimelinePanel.js b/src/components/structures/TimelinePanel.js index da6392d0de..41283b5308 100644 --- a/src/components/structures/TimelinePanel.js +++ b/src/components/structures/TimelinePanel.js @@ -203,6 +203,8 @@ const TimelinePanel = createReactClass({ this.lastRRSentEventId = undefined; this.lastRMSentEventId = undefined; + this._messagePanel = createRef(); + if (this.props.manageReadReceipts) { this.updateReadReceiptOnUserActivity(); } @@ -225,8 +227,6 @@ const TimelinePanel = createReactClass({ MatrixClientPeg.get().on("sync", this.onSync); this._initTimeline(this.props); - - this._messagePanel = createRef(); }, componentWillReceiveProps: function(newProps) {