Skip to content

Commit 4de819b

Browse files
Fix guests in encrypted rooms
Aktivieren der von Riot herausgenommenen Gästefunktion (kam beim merge versehentlich wieder rein) und setzen der Parameter für den Raumpreview damit der Client nicht per default alle Gäste ablehnt Change-Id: I00426e6e8ca552f37ac3caeca83ed7a0f643b15f
1 parent e0725dc commit 4de819b

File tree

1 file changed

+6
-30
lines changed

1 file changed

+6
-30
lines changed

src/components/structures/RoomView.js

Lines changed: 6 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ import RoomContext from "../../contexts/RoomContext";
5656
import MatrixClientContext from "../../contexts/MatrixClientContext";
5757
import { shieldStatusForRoom } from '../../utils/ShieldUtils';
5858
import {Action} from "../../dispatcher/actions";
59+
import {MatrixClientPeg} from '../../MatrixClientPeg';
5960

6061
const DEBUG = false;
6162
let debuglog = function() {};
@@ -1080,33 +1081,7 @@ export default createReactClass({
10801081
dis.dispatch({
10811082
action: 'will_join',
10821083
});
1083-
1084-
const SetMxIdDialog = sdk.getComponent('views.dialogs.SetMxIdDialog');
1085-
const close = Modal.createTrackedDialog('Set MXID', '', SetMxIdDialog, {
1086-
homeserverUrl: cli.getHomeserverUrl(),
1087-
onFinished: (submitted, credentials) => {
1088-
if (submitted) {
1089-
this.props.onRegistered(credentials);
1090-
} else {
1091-
dis.dispatch({
1092-
action: 'cancel_after_sync_prepared',
1093-
});
1094-
dis.dispatch({
1095-
action: 'cancel_join',
1096-
});
1097-
}
1098-
},
1099-
onDifferentServerClicked: (ev) => {
1100-
dis.dispatch({action: 'start_registration'});
1101-
close();
1102-
},
1103-
onLoginClick: (ev) => {
1104-
dis.dispatch({action: 'start_login'});
1105-
close();
1106-
},
1107-
}).close;
1108-
return;
1109-
} else {
1084+
}
11101085
Promise.resolve().then(() => {
11111086
const signUrl = this.props.thirdPartyInvite ?
11121087
this.props.thirdPartyInvite.inviteSignUrl : undefined;
@@ -1116,8 +1091,6 @@ export default createReactClass({
11161091
});
11171092
return Promise.resolve();
11181093
});
1119-
}
1120-
11211094
},
11221095

11231096
onMessageListScroll: function(ev) {
@@ -1689,6 +1662,7 @@ export default createReactClass({
16891662
loading={loading}
16901663
joining={this.state.joining}
16911664
oobData={this.props.oobData}
1665+
guest_can_join={this.state.guestsCanJoin}
16921666
/>
16931667
</ErrorBoundary>
16941668
</div>
@@ -1721,7 +1695,7 @@ export default createReactClass({
17211695
oobData={this.props.oobData}
17221696
signUrl={this.props.thirdPartyInvite ? this.props.thirdPartyInvite.inviteSignUrl : null}
17231697
room={this.state.room}
1724-
guest_can_join={true}
1698+
guest_can_join={this.state.guestsCanJoin}
17251699
/>
17261700
</ErrorBoundary>
17271701
</div>
@@ -1768,6 +1742,7 @@ export default createReactClass({
17681742
canPreview={false}
17691743
joining={this.state.joining}
17701744
room={this.state.room}
1745+
guest_can_join={this.state.guestsCanJoin}
17711746
/>
17721747
</ErrorBoundary>
17731748
</div>
@@ -1864,6 +1839,7 @@ export default createReactClass({
18641839
oobData={this.props.oobData}
18651840
canPreview={this.state.canPeek}
18661841
room={this.state.room}
1842+
guest_can_join={this.state.guestsCanJoin}
18671843
/>
18681844
);
18691845
if (!this.state.canPeek) {

0 commit comments

Comments
 (0)