Merge remote-tracking branch 'origin/develop' into develop

This commit is contained in:
Weblate 2018-10-16 15:30:15 +00:00
commit 6af9998b62
2 changed files with 6 additions and 1 deletions

View file

@ -66,6 +66,10 @@ module.exports = React.createClass({
// result in "X, Y, Z and 100 others are typing." // result in "X, Y, Z and 100 others are typing."
whoIsTypingLimit: PropTypes.number, whoIsTypingLimit: PropTypes.number,
// true if the room is being peeked at. This affects components that shouldn't
// logically be shown when peeking, such as a prompt to invite people to a room.
isPeeking: PropTypes.bool,
// callback for when the user clicks on the 'resend all' button in the // callback for when the user clicks on the 'resend all' button in the
// 'unsent messages' bar // 'unsent messages' bar
onResendAllClick: PropTypes.func, onResendAllClick: PropTypes.func,
@ -457,7 +461,7 @@ module.exports = React.createClass({
} }
// If you're alone in the room, and have sent a message, suggest to invite someone // If you're alone in the room, and have sent a message, suggest to invite someone
if (this.props.sentMessageAndIsAlone) { if (this.props.sentMessageAndIsAlone && !this.props.isPeeking) {
return ( return (
<div className="mx_RoomStatusBar_isAlone"> <div className="mx_RoomStatusBar_isAlone">
{ _t("There's no one else here! Would you like to <inviteText>invite others</inviteText> " + { _t("There's no one else here! Would you like to <inviteText>invite others</inviteText> " +

View file

@ -1595,6 +1595,7 @@ module.exports = React.createClass({
atEndOfLiveTimeline={this.state.atEndOfLiveTimeline} atEndOfLiveTimeline={this.state.atEndOfLiveTimeline}
sentMessageAndIsAlone={this.state.isAlone} sentMessageAndIsAlone={this.state.isAlone}
hasActiveCall={inCall} hasActiveCall={inCall}
isPeeking={myMembership !== "join"}
onInviteClick={this.onInviteButtonClick} onInviteClick={this.onInviteButtonClick}
onStopWarningClick={this.onStopAloneWarningClick} onStopWarningClick={this.onStopAloneWarningClick}
onScrollToBottomClick={this.jumpToLiveTimeline} onScrollToBottomClick={this.jumpToLiveTimeline}