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
Rename history visibility type
This commit is contained in:
@@ -29,7 +29,7 @@ import { replaceableComponent } from "../../../../../utils/replaceableComponent"
|
|||||||
|
|
||||||
type JoinRule = "public" | "knock" | "invite" | "private";
|
type JoinRule = "public" | "knock" | "invite" | "private";
|
||||||
type GuestAccess = "can_join" | "forbidden";
|
type GuestAccess = "can_join" | "forbidden";
|
||||||
type History = "invited" | "joined" | "shared" | "world_readable";
|
type HistoryVisibility = "invited" | "joined" | "shared" | "world_readable";
|
||||||
|
|
||||||
interface IProps {
|
interface IProps {
|
||||||
roomId: string;
|
roomId: string;
|
||||||
@@ -38,7 +38,7 @@ interface IProps {
|
|||||||
interface IState {
|
interface IState {
|
||||||
joinRule: JoinRule;
|
joinRule: JoinRule;
|
||||||
guestAccess: GuestAccess;
|
guestAccess: GuestAccess;
|
||||||
history: History;
|
history: HistoryVisibility;
|
||||||
hasAliases: boolean;
|
hasAliases: boolean;
|
||||||
encrypted: boolean;
|
encrypted: boolean;
|
||||||
}
|
}
|
||||||
@@ -74,7 +74,7 @@ export default class SecurityRoomSettingsTab extends React.Component<IProps, ISt
|
|||||||
'guest_access',
|
'guest_access',
|
||||||
'forbidden',
|
'forbidden',
|
||||||
);
|
);
|
||||||
const history: History = this.pullContentPropertyFromEvent(
|
const history: HistoryVisibility = this.pullContentPropertyFromEvent(
|
||||||
state.getStateEvents("m.room.history_visibility", ""),
|
state.getStateEvents("m.room.history_visibility", ""),
|
||||||
'history_visibility',
|
'history_visibility',
|
||||||
'shared',
|
'shared',
|
||||||
|
|||||||
Reference in New Issue
Block a user