mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 05:55:00 +08:00
Merge commit '9a0ea56' into rav/roomview_works
Conflicts: src/components/structures/RoomView.js
This commit is contained in:
commit
776b6a26c3
@ -47,11 +47,6 @@ module.exports = React.createClass({
|
|||||||
// for more details.
|
// for more details.
|
||||||
stickyBottom: React.PropTypes.bool,
|
stickyBottom: React.PropTypes.bool,
|
||||||
|
|
||||||
// callback to determine if a user is the magic freeswitch conference
|
|
||||||
// user. Takes one parameter, which is a user id. Should return true if
|
|
||||||
// the user is the conference user.
|
|
||||||
isConferenceUser: React.PropTypes.func,
|
|
||||||
|
|
||||||
// callback which is called when the panel is scrolled.
|
// callback which is called when the panel is scrolled.
|
||||||
onScroll: React.PropTypes.func,
|
onScroll: React.PropTypes.func,
|
||||||
|
|
||||||
@ -140,13 +135,6 @@ module.exports = React.createClass({
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.props.isConferenceUser && mxEv.getType() === "m.room.member") {
|
|
||||||
if (this.props.isConferenceUser(mxEv.getSender()) ||
|
|
||||||
this.props.isConferenceUser(mxEv.getStateKey())) {
|
|
||||||
continue; // suppress conf user join/parts
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
var lastShownEventIndex = i;
|
var lastShownEventIndex = i;
|
||||||
@ -167,13 +155,6 @@ module.exports = React.createClass({
|
|||||||
wantTile = false;
|
wantTile = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.props.isConferenceUser && mxEv.getType() === "m.room.member") {
|
|
||||||
if (this.props.isConferenceUser(mxEv.getSender()) ||
|
|
||||||
this.props.isConferenceUser(mxEv.getStateKey())) {
|
|
||||||
wantTile = false; // suppress conf user join/parts
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
var last = (i == lastShownEventIndex);
|
var last = (i == lastShownEventIndex);
|
||||||
|
|
||||||
if (wantTile) {
|
if (wantTile) {
|
||||||
|
@ -1265,9 +1265,6 @@ module.exports = React.createClass({
|
|||||||
highlightedEventId={this.props.highlightedEventId}
|
highlightedEventId={this.props.highlightedEventId}
|
||||||
eventId={this.props.eventId}
|
eventId={this.props.eventId}
|
||||||
eventPixelOffset={this.props.eventPixelOffset}
|
eventPixelOffset={this.props.eventPixelOffset}
|
||||||
isConferenceUser={this.props.ConferenceHandler ?
|
|
||||||
this.props.ConferenceHandler.isConferenceUser :
|
|
||||||
null }
|
|
||||||
onScroll={ this.onMessageListScroll }
|
onScroll={ this.onMessageListScroll }
|
||||||
/>);
|
/>);
|
||||||
|
|
||||||
|
@ -67,11 +67,6 @@ module.exports = React.createClass({
|
|||||||
// middle of the viewprt.
|
// middle of the viewprt.
|
||||||
eventPixelOffset: React.PropTypes.number,
|
eventPixelOffset: React.PropTypes.number,
|
||||||
|
|
||||||
// callback to determine if a user is the magic freeswitch conference
|
|
||||||
// user. Takes one parameter, which is a user id. Should return true if
|
|
||||||
// the user is the conference user.
|
|
||||||
isConferenceUser: React.PropTypes.func,
|
|
||||||
|
|
||||||
// callback which is called when the panel is scrolled.
|
// callback which is called when the panel is scrolled.
|
||||||
onScroll: React.PropTypes.func,
|
onScroll: React.PropTypes.func,
|
||||||
},
|
},
|
||||||
@ -455,7 +450,6 @@ module.exports = React.createClass({
|
|||||||
suppressFirstDateSeparator={ this.state.canBackPaginate }
|
suppressFirstDateSeparator={ this.state.canBackPaginate }
|
||||||
ourUserId={ MatrixClientPeg.get().credentials.userId }
|
ourUserId={ MatrixClientPeg.get().credentials.userId }
|
||||||
stickyBottom={ stickyBottom }
|
stickyBottom={ stickyBottom }
|
||||||
isConferenceUser={ this.props.isConferenceUser }
|
|
||||||
onScroll={ this.props.onScroll }
|
onScroll={ this.props.onScroll }
|
||||||
onFillRequest={ this.onMessageListFillRequest }
|
onFillRequest={ this.onMessageListFillRequest }
|
||||||
/>
|
/>
|
||||||
|
Loading…
Reference in New Issue
Block a user