This repository was archived by the owner on Jan 30, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +26
-3
lines changed Expand file tree Collapse file tree 1 file changed +26
-3
lines changed Original file line number Diff line number Diff line change 11interface AppTitleBase {
2+ /**
3+ * The configured brand name.
4+ * @example Element
5+ */
26 brand : string ;
7+ /**
8+ * Is the client sync loop in an error state.
9+ */
310 syncError : boolean ;
11+ /**
12+ * The current unread notification count.
13+ */
14+ unreadNotificationCount ?: number ;
15+ /**
16+ * Has the client muted notifications.
17+ */
18+ notificationsMuted ?: boolean ;
419}
520
621export interface AppTitleInRoom extends AppTitleBase {
7- brand : string ;
22+ /**
23+ * The room name, may be undefined if the room has no name.
24+ */
825 roomName ?: string ;
26+ /**
27+ * The room ID of the room in view.
28+ */
929 roomId : string ;
10- unreadNotificationCount : number ;
11- notificationsMuted : boolean ;
1230}
1331
1432export interface GetFaviconParameters {
@@ -27,6 +45,11 @@ export interface GetFaviconParameters {
2745export type AppTitleContext = AppTitleBase | AppTitleInRoom ;
2846
2947export interface ProvideBrandingExtensions {
48+ /**
49+ * Called whenever the client would update the document title.
50+ * @param context Current application context used to generate the title.
51+ * @returns A string to be used for the full title, or null to use the default title.
52+ */
3053 getAppTitle ( context : AppTitleContext ) : string | null ;
3154 /**
3255 * Called when the app needs to generate the basic app favicon.
You can’t perform that action at this time.
0 commit comments