mirror of
https://github.com/element-hq/element-web
synced 2024-11-24 02:05:45 +03:00
Rename history visibility type
This commit is contained in:
parent
69fbfdc552
commit
a3a756fdb2
1 changed files with 3 additions and 3 deletions
|
@ -29,7 +29,7 @@ import { replaceableComponent } from "../../../../../utils/replaceableComponent"
|
|||
|
||||
type JoinRule = "public" | "knock" | "invite" | "private";
|
||||
type GuestAccess = "can_join" | "forbidden";
|
||||
type History = "invited" | "joined" | "shared" | "world_readable";
|
||||
type HistoryVisibility = "invited" | "joined" | "shared" | "world_readable";
|
||||
|
||||
interface IProps {
|
||||
roomId: string;
|
||||
|
@ -38,7 +38,7 @@ interface IProps {
|
|||
interface IState {
|
||||
joinRule: JoinRule;
|
||||
guestAccess: GuestAccess;
|
||||
history: History;
|
||||
history: HistoryVisibility;
|
||||
hasAliases: boolean;
|
||||
encrypted: boolean;
|
||||
}
|
||||
|
@ -74,7 +74,7 @@ export default class SecurityRoomSettingsTab extends React.Component<IProps, ISt
|
|||
'guest_access',
|
||||
'forbidden',
|
||||
);
|
||||
const history: History = this.pullContentPropertyFromEvent(
|
||||
const history: HistoryVisibility = this.pullContentPropertyFromEvent(
|
||||
state.getStateEvents("m.room.history_visibility", ""),
|
||||
'history_visibility',
|
||||
'shared',
|
||||
|
|
Loading…
Reference in a new issue