1
0
Fork 0
forked from Mirrors/gomuks

Display title in topic bar in modern room view UI

This commit is contained in:
FIGBERT 2023-03-07 18:49:39 -08:00
parent 7fffa994af
commit 6d4d6b7d20
No known key found for this signature in database
GPG key ID: 67F1598D607A844B

View file

@ -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 {