Skip to content
Snippets Groups Projects
Unverified Commit d162e93b authored by R Midhun Suresh's avatar R Midhun Suresh Committed by GitHub
Browse files

Merge pull request #40 from vector-im/fix-38

Default to showing no text on the room header
parents 56cb5c87 306ac2dc
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
......@@ -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() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment