mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-19 02:55:15 +00:00
01d3369c64
Prior to this commit, communities without an image would render invisible in the navigation bar of the application. To avoid this, we're now falling back to our StatusLetterIdenticon component, which renders the first letter of the community name with the color of the community.
27 lines
665 B
QML
27 lines
665 B
QML
import QtQuick 2.13
|
|
import QtQuick.Controls 2.13
|
|
import QtQuick.Layouts 1.13
|
|
import "../../../../shared"
|
|
import "../../../../imports"
|
|
import "../components"
|
|
import "./"
|
|
|
|
ListView {
|
|
id: communityListView
|
|
spacing: 12
|
|
height: childrenRect.height
|
|
visible: height > 10
|
|
width:parent.width
|
|
interactive: false
|
|
|
|
model: chatsModel.communities.joinedCommunities
|
|
delegate: CommunityButton {
|
|
communityId: model.id
|
|
name: model.name
|
|
image: model.thumbnailImage
|
|
unviewedMessagesCount: model.unviewedMessagesCount
|
|
iconColor: model.communityColor
|
|
useLetterIdenticon: model.thumbnailImage === ""
|
|
}
|
|
}
|