Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Commit 77ac28c

Browse files
committed
Add branding extensions
1 parent ca0b3ea commit 77ac28c

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
interface AppTitleBase {
2+
brand: string;
3+
syncError: boolean;
4+
}
5+
6+
export interface AppTitleInRoom extends AppTitleBase {
7+
brand: string;
8+
roomName?: string;
9+
roomId: string;
10+
unreadNotificationCount: number;
11+
notificationsMuted: boolean;
12+
}
13+
14+
export type AppTitleContext = AppTitleBase|AppTitleInRoom;
15+
16+
export interface ProvideBrandingExtensions {
17+
getAppTitle(context: AppTitleContext): string|null;
18+
}
19+
20+
export abstract class BrandingExtensionsBase implements ProvideBrandingExtensions {
21+
public getAppTitle(context: AppTitleContext): string|null {
22+
return null;
23+
}
24+
}

src/types/extensions.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,12 @@ See the License for the specific language governing permissions and
1313
limitations under the License.
1414
*/
1515

16+
import { ProvideBrandingExtensions } from "../lifecycles/BrandingExtensions";
1617
import { ProvideCryptoSetupExtensions } from "../lifecycles/CryptoSetupExtensions";
1718
import { ProvideExperimentalExtensions } from "../lifecycles/ExperimentalExtensions";
1819

1920
export type AllExtensions = {
21+
branding?: ProvideBrandingExtensions;
2022
cryptoSetup?: ProvideCryptoSetupExtensions;
2123
experimental?: ProvideExperimentalExtensions;
2224
};

0 commit comments

Comments
 (0)