don't show re-join upon kicked when we know you can't
This commit is contained in:
parent
dbb73439e4
commit
eeb9b4b2e3
1 changed files with 10 additions and 4 deletions
|
@ -228,10 +228,16 @@ module.exports = React.createClass({
|
||||||
const {memberName, reason} = this._getKickOrBanInfo();
|
const {memberName, reason} = this._getKickOrBanInfo();
|
||||||
title = _t("You were kicked from this room by %(memberName)s", {memberName});
|
title = _t("You were kicked from this room by %(memberName)s", {memberName});
|
||||||
subTitle = _t("Reason: %(reason)s", {reason});
|
subTitle = _t("Reason: %(reason)s", {reason});
|
||||||
primaryActionLabel = _t("Re-join");
|
|
||||||
primaryActionHandler = this.props.onJoinClick;
|
if (this._joinRule() === "invite") {
|
||||||
secondaryActionLabel = _t("Forget this room");
|
primaryActionLabel = _t("Forget this room");
|
||||||
secondaryActionHandler = this.props.onForgetClick;
|
primaryActionHandler = this.props.onForgetClick;
|
||||||
|
} else {
|
||||||
|
primaryActionLabel = _t("Re-join");
|
||||||
|
primaryActionHandler = this.props.onJoinClick;
|
||||||
|
secondaryActionLabel = _t("Forget this room");
|
||||||
|
secondaryActionHandler = this.props.onForgetClick;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case MessageCase.Banned: {
|
case MessageCase.Banned: {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue