Skip to content

Commit d3ea250

Browse files
authored
Remove call to MatrixClient.setGlobalErrorOnUnknownDevices (#29134)
* refactor(MatrixChat): remove `MatrixClient.setGlobalErrorOnUnknownDevices` call MatrixClient.setGlobalErrorOnUnknownDevices is not implemented in the rust-crypto and will be removed when the legacy crypto will be ripped out. * test(e2e): remove `MatrixClient.setGlobalErrorOnUnknownDevices` call MatrixClient.setGlobalErrorOnUnknownDevices is not implemented in the rust-crypto and will be removed when the legacy crypto will be ripped out.
1 parent f243fee commit d3ea250

File tree

3 files changed

+0
-9
lines changed

3 files changed

+0
-9
lines changed

playwright/pages/bot.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,6 @@ export class Bot extends Client {
192192

193193
await clientHandle.evaluate(async (cli) => {
194194
await cli.initRustCrypto({ useIndexedDB: false });
195-
cli.setGlobalErrorOnUnknownDevices(false);
196195
await cli.startClient();
197196
});
198197

src/components/structures/MatrixChat.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1698,13 +1698,6 @@ export default class MatrixChat extends React.PureComponent<IProps, IState> {
16981698
if (crypto) {
16991699
const blacklistEnabled = SettingsStore.getValueAt(SettingLevel.DEVICE, "blacklistUnverifiedDevices");
17001700
crypto.globalBlacklistUnverifiedDevices = blacklistEnabled;
1701-
1702-
// With cross-signing enabled, we send to unknown devices
1703-
// without prompting. Any bad-device status the user should
1704-
// be aware of will be signalled through the room shield
1705-
// changing colour. More advanced behaviour will come once
1706-
// we implement more settings.
1707-
cli.setGlobalErrorOnUnknownDevices(false);
17081701
}
17091702

17101703
// Cannot be done in OnLoggedIn as at that point the AccountSettingsHandler doesn't yet have a client

test/unit-tests/components/structures/MatrixChat-test.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@ describe("<MatrixChat />", () => {
125125
}),
126126
getVisibleRooms: jest.fn().mockReturnValue([]),
127127
getRooms: jest.fn().mockReturnValue([]),
128-
setGlobalErrorOnUnknownDevices: jest.fn(),
129128
getCrypto: jest.fn().mockReturnValue({
130129
getVerificationRequestsToDeviceInProgress: jest.fn().mockReturnValue([]),
131130
isCrossSigningReady: jest.fn().mockReturnValue(false),

0 commit comments

Comments
 (0)