You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +03:00
encrypt for invited users if history visibility allows.
fixes https://github.com/vector-im/riot-web/issues/2713. requires equivalent branch in js-sdk
This commit is contained in:
@@ -44,7 +44,7 @@ export function markAllDevicesKnown(matrixClient, devices) {
|
|||||||
* module:crypto~DeviceInfo|DeviceInfo}.
|
* module:crypto~DeviceInfo|DeviceInfo}.
|
||||||
*/
|
*/
|
||||||
export function getUnknownDevicesForRoom(matrixClient, room) {
|
export function getUnknownDevicesForRoom(matrixClient, room) {
|
||||||
const roomMembers = room.getJoinedMembers().map((m) => {
|
const roomMembers = room.getEncryptionTargetMembers().map((m) => {
|
||||||
return m.userId;
|
return m.userId;
|
||||||
});
|
});
|
||||||
return matrixClient.downloadKeys(roomMembers, false).then((devices) => {
|
return matrixClient.downloadKeys(roomMembers, false).then((devices) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user