1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-28 05:03:59 +03:00

Add keysharing on invites to File Tree Spaces

This commit is contained in:
Travis Ralston
2021-06-17 17:36:49 -06:00
parent 303119e113
commit 39892c98f9
3 changed files with 74 additions and 9 deletions

View File

@@ -37,7 +37,7 @@ import {
import { WITHHELD_MESSAGES } from '../OlmDevice';
// determine whether the key can be shared with invitees
function isRoomSharedHistory(room) {
export function isRoomSharedHistory(room) {
const visibilityEvent = room.currentState &&
room.currentState.getStateEvents("m.room.history_visibility", "");
// NOTE: if the room visibility is unset, it would normally default to