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
Rename ref to timelinePanel
This commit is contained in:
@ -209,10 +209,10 @@ const FilePanel = createReactClass({
|
|||||||
},
|
},
|
||||||
|
|
||||||
_getScrollState: function() {
|
_getScrollState: function() {
|
||||||
const messagePanel = this._messagePanel;
|
const timelinePanel = this._timelinePanel;
|
||||||
const scrollState = messagePanel.getScrollState();
|
const scrollState = timelinePanel.getScrollState();
|
||||||
|
|
||||||
if (!messagePanel) return null;
|
if (!timelinePanel) return null;
|
||||||
|
|
||||||
if (!scrollState || scrollState.stuckAtBottom) {
|
if (!scrollState || scrollState.stuckAtBottom) {
|
||||||
return null;
|
return null;
|
||||||
@ -225,7 +225,7 @@ const FilePanel = createReactClass({
|
|||||||
},
|
},
|
||||||
|
|
||||||
_getTimelinePanelRef: function(ref) {
|
_getTimelinePanelRef: function(ref) {
|
||||||
this._messagePanel = ref;
|
this._timelinePanel = ref;
|
||||||
},
|
},
|
||||||
|
|
||||||
render: function() {
|
render: function() {
|
||||||
|
Reference in New Issue
Block a user