fix(@desktop/chat): channel suggestions are not being displayed

This commit is contained in:
Andrei Smirnov 2021-08-23 07:33:06 +03:00 committed by Iuri Matias
parent 94f6041ec5
commit 20bf19983f
2 changed files with 3 additions and 4 deletions

View File

@ -79,8 +79,8 @@ Item {
Loader {
id: rectangleBubbleLoader
active: !!invitedCommunity
width: item.width
height: item.height
width: item ? item.width : 0
height: item ? item.height : 0
sourceComponent: Component {
Rectangle {

View File

@ -196,10 +196,9 @@ Item {
height: (contentHeight < (parent.height - contactRequests.height - Style.current.padding)) ? contentHeight : (parent.height - contactRequests.height - Style.current.padding)
anchors.top: contactRequests.bottom
anchors.topMargin: Style.current.padding
contentHeight: channelList.height + 2 * Style.current.padding + emptyViewAndSuggestions.height + emptyViewAndSuggestions.anchors.topMargin
contentHeight: channelList.childrenRect.height
anchors.horizontalCenter: parent.horizontalCenter
leftPadding: Style.current.halfPadding
rightPadding: Style.current.halfPadding