You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-06-27 15:01:53 +03:00
remove unused _gatherTimelinePanelRef
This commit is contained in:
@ -88,12 +88,6 @@ var FilePanel = React.createClass({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
// this has to be a proper method rather than an unnamed function,
|
|
||||||
// otherwise react calls it with null on each update.
|
|
||||||
_gatherTimelinePanelRef: function(r) {
|
|
||||||
//this.refs.messagePanel = r;
|
|
||||||
},
|
|
||||||
|
|
||||||
render: function() {
|
render: function() {
|
||||||
// wrap a TimelinePanel with the jump-to-event bits turned off.
|
// wrap a TimelinePanel with the jump-to-event bits turned off.
|
||||||
var TimelinePanel = sdk.getComponent("structures.TimelinePanel");
|
var TimelinePanel = sdk.getComponent("structures.TimelinePanel");
|
||||||
@ -103,7 +97,7 @@ var FilePanel = React.createClass({
|
|||||||
console.log("rendering TimelinePanel for timelineSet " + this.state.timelineSet.roomId + " " +
|
console.log("rendering TimelinePanel for timelineSet " + this.state.timelineSet.roomId + " " +
|
||||||
"(" + this.state.timelineSet._timelines.join(", ") + ")" + " with key " + this.props.roomId);
|
"(" + this.state.timelineSet._timelines.join(", ") + ")" + " with key " + this.props.roomId);
|
||||||
return (
|
return (
|
||||||
<TimelinePanel key={"filepanel_" + this.props.roomId} ref={this._gatherTimelinePanelRef}
|
<TimelinePanel key={"filepanel_" + this.props.roomId}
|
||||||
className="mx_FilePanel"
|
className="mx_FilePanel"
|
||||||
manageReadReceipts={false}
|
manageReadReceipts={false}
|
||||||
manageReadMarkers={false}
|
manageReadMarkers={false}
|
||||||
|
@ -31,12 +31,6 @@ var NotificationPanel = React.createClass({
|
|||||||
propTypes: {
|
propTypes: {
|
||||||
},
|
},
|
||||||
|
|
||||||
// this has to be a proper method rather than an unnamed function,
|
|
||||||
// otherwise react calls it with null on each update.
|
|
||||||
_gatherTimelinePanelRef: function(r) {
|
|
||||||
//this.refs.messagePanel = r;
|
|
||||||
},
|
|
||||||
|
|
||||||
render: function() {
|
render: function() {
|
||||||
// wrap a TimelinePanel with the jump-to-event bits turned off.
|
// wrap a TimelinePanel with the jump-to-event bits turned off.
|
||||||
var TimelinePanel = sdk.getComponent("structures.TimelinePanel");
|
var TimelinePanel = sdk.getComponent("structures.TimelinePanel");
|
||||||
@ -46,7 +40,7 @@ var NotificationPanel = React.createClass({
|
|||||||
|
|
||||||
if (timelineSet) {
|
if (timelineSet) {
|
||||||
return (
|
return (
|
||||||
<TimelinePanel key={"NotificationPanel_" + this.props.roomId} ref={this._gatherTimelinePanelRef}
|
<TimelinePanel key={"NotificationPanel_" + this.props.roomId}
|
||||||
className="mx_NotificationPanel"
|
className="mx_NotificationPanel"
|
||||||
manageReadReceipts={false}
|
manageReadReceipts={false}
|
||||||
manageReadMarkers={false}
|
manageReadMarkers={false}
|
||||||
|
Reference in New Issue
Block a user