forked from Mirrors/gomuks
Display title in topic bar in modern room view UI
This commit is contained in:
parent
7fffa994af
commit
6d4d6b7d20
1 changed files with 1 additions and 1 deletions
|
@ -858,7 +858,7 @@ func (view *RoomView) MxRoom() *rooms.Room {
|
||||||
|
|
||||||
func (view *RoomView) Update() {
|
func (view *RoomView) Update() {
|
||||||
topicStr := strings.TrimSpace(strings.ReplaceAll(view.Room.GetTopic(), "\n", " "))
|
topicStr := strings.TrimSpace(strings.ReplaceAll(view.Room.GetTopic(), "\n", " "))
|
||||||
if view.config.Preferences.HideRoomList {
|
if view.config.Preferences.HideRoomList || view.config.Preferences.DisplayMode == config.DisplayModeModern {
|
||||||
if len(topicStr) > 0 {
|
if len(topicStr) > 0 {
|
||||||
topicStr = fmt.Sprintf("%s - %s", view.Room.GetTitle(), topicStr)
|
topicStr = fmt.Sprintf("%s - %s", view.Room.GetTitle(), topicStr)
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue