diff --git a/src/types/IChatterboxConfig.ts b/src/types/IChatterboxConfig.ts index 8e0720216f1b0618386a9f49f3d779b90f7a2b38..a3d8d2bbed03de52ad658cb78fa017a3c65d41b6 100644 --- a/src/types/IChatterboxConfig.ts +++ b/src/types/IChatterboxConfig.ts @@ -14,7 +14,7 @@ export interface IChatterboxConfig { } interface IHeader { - // An optional static title. If this is not given, the room name is used instead + // An optional static title. If this is not given, no room name is shown in the header title?: string; // An optional link to static avatar. If this is not given, the room avatar is used instead avatar?: string; diff --git a/src/viewmodels/ChatterboxViewModel.ts b/src/viewmodels/ChatterboxViewModel.ts index a31cc785831aa8f6d0bdf9e7c516cbc6dad3bc59..1cea7c1bfef4a5fb144b2237eb62339ff48a3fef 100644 --- a/src/viewmodels/ChatterboxViewModel.ts +++ b/src/viewmodels/ChatterboxViewModel.ts @@ -107,7 +107,7 @@ export class ChatterboxViewModel extends ViewModel { } get roomName() { - return this._options.config["header"]?.["title"] ?? this._roomViewModel.name; + return this._options.config["header"]?.["title"] ?? ""; } get customAvatarURL() {