mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-16 05:04:57 +08:00
Use a more correct subset of users in /remakeolm
developer command (#9402)
This commit is contained in:
parent
7cb2f941d3
commit
7b55b89ac6
@ -1104,12 +1104,13 @@ export const Commands = [
|
||||
|
||||
MatrixClientPeg.get().forceDiscardSession(roomId);
|
||||
|
||||
// noinspection JSIgnoredPromiseFromCall
|
||||
MatrixClientPeg.get().crypto.ensureOlmSessionsForUsers(room.getMembers().map(m => m.userId), true);
|
||||
return success(room.getEncryptionTargetMembers().then(members => {
|
||||
// noinspection JSIgnoredPromiseFromCall
|
||||
MatrixClientPeg.get().crypto.ensureOlmSessionsForUsers(members.map(m => m.userId), true);
|
||||
}));
|
||||
} catch (e) {
|
||||
return reject(e.message);
|
||||
}
|
||||
return success();
|
||||
},
|
||||
category: CommandCategories.advanced,
|
||||
renderingTypes: [TimelineRenderingType.Room],
|
||||
|
Loading…
Reference in New Issue
Block a user