mirror of
https://github.com/element-hq/element-web
synced 2024-11-26 19:26:04 +03:00
Rename ref to timelinePanel
This commit is contained in:
parent
d910eb4d57
commit
e0d6fa3f51
1 changed files with 4 additions and 4 deletions
|
@ -209,10 +209,10 @@ const FilePanel = createReactClass({
|
|||
},
|
||||
|
||||
_getScrollState: function() {
|
||||
const messagePanel = this._messagePanel;
|
||||
const scrollState = messagePanel.getScrollState();
|
||||
const timelinePanel = this._timelinePanel;
|
||||
const scrollState = timelinePanel.getScrollState();
|
||||
|
||||
if (!messagePanel) return null;
|
||||
if (!timelinePanel) return null;
|
||||
|
||||
if (!scrollState || scrollState.stuckAtBottom) {
|
||||
return null;
|
||||
|
@ -225,7 +225,7 @@ const FilePanel = createReactClass({
|
|||
},
|
||||
|
||||
_getTimelinePanelRef: function(ref) {
|
||||
this._messagePanel = ref;
|
||||
this._timelinePanel = ref;
|
||||
},
|
||||
|
||||
render: function() {
|
||||
|
|
Loading…
Reference in a new issue