This repository was archived by the owner on Jan 30, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change @@ -13,10 +13,12 @@ See the License for the specific language governing permissions and
1313limitations under the License.
1414*/
1515
16+ import { ProvideBrandingExtensions } from "../lifecycles/BrandingExtensions" ;
1617import { ProvideCryptoSetupExtensions } from "../lifecycles/CryptoSetupExtensions" ;
1718import { ProvideExperimentalExtensions } from "../lifecycles/ExperimentalExtensions" ;
1819
1920export type AllExtensions = {
21+ branding ?: ProvideBrandingExtensions ;
2022 cryptoSetup ?: ProvideCryptoSetupExtensions ;
2123 experimental ?: ProvideExperimentalExtensions ;
2224} ;
You can’t perform that action at this time.
0 commit comments