Add always show flag to view model
This commit is contained in:
@@ -88,3 +88,5 @@ export const videoInput = new Setting<string | undefined>(
|
|||||||
"video-input",
|
"video-input",
|
||||||
undefined,
|
undefined,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
export const alwaysShowSelf = new Setting<boolean>("always-show-self", true);
|
||||||
|
|||||||
@@ -49,6 +49,7 @@ import { useEffect } from "react";
|
|||||||
|
|
||||||
import { ViewModel } from "./ViewModel";
|
import { ViewModel } from "./ViewModel";
|
||||||
import { useReactiveState } from "../useReactiveState";
|
import { useReactiveState } from "../useReactiveState";
|
||||||
|
import { alwaysShowSelf } from "../settings/settings";
|
||||||
|
|
||||||
export interface NameData {
|
export interface NameData {
|
||||||
/**
|
/**
|
||||||
@@ -237,6 +238,13 @@ export class LocalUserMediaViewModel extends BaseUserMediaViewModel {
|
|||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Whether to show this tile in a highly visible location near the start of
|
||||||
|
* the grid.
|
||||||
|
*/
|
||||||
|
public readonly alwaysShow = alwaysShowSelf.value;
|
||||||
|
public readonly setAlwaysShow = alwaysShowSelf.setValue;
|
||||||
|
|
||||||
public constructor(
|
public constructor(
|
||||||
id: string,
|
id: string,
|
||||||
member: RoomMember | undefined,
|
member: RoomMember | undefined,
|
||||||
|
|||||||
Reference in New Issue
Block a user