fix(ChatLayout): ensure channel name is vertically centered

This was originally reported in https://github.com/status-im/StatusQ/issues/427, however it turns out
that the underlying component already handles this case correctly.

The reason the channel name is not vertically centered inside Status Desktop,
is because the returned value of `XSS.filterXss()` for the `subTitle` is never an empty string.

Trimming the return value fixes this.
This commit is contained in:
Pascal Precht 2021-10-04 15:22:22 +02:00 committed by Iuri Matias
parent 77bde47de0
commit 71ab9cebcf
1 changed files with 1 additions and 1 deletions

View File

@ -179,7 +179,7 @@ Item {
//% "1 member"
return qsTrId("1-member");
case Constants.chatTypeCommunity:
return Utils.linkifyAndXSS(chatsModel.channelView.activeChannel.description)
return Utils.linkifyAndXSS(chatsModel.channelView.activeChannel.description).trim()
default:
return ""
}