fix(ActivityChannelBadgePanel): ensure loading badge components works

QML is complaining that it can't assign the types to `sourceComponent`,
so this commit wraps them in `Component` types to mitigate that.
This commit is contained in:
Pascal Precht 2021-10-21 11:18:36 +02:00 committed by r4bbit.eth
parent a95348b289
commit 193b42ed54
1 changed files with 31 additions and 25 deletions

View File

@ -51,16 +51,19 @@ Rectangle {
}
}
ActivityCenter.ReplyComponent {
Component {
id: replyComponent
ActivityCenter.ReplyComponent {
width: childrenRect.width
height: parent.height
replyMessageIndex: wrapper.replyMessageIndex
repliedMessageContent: wrapper.repliedMessageContent
}
}
ActivityCenter.CommunityBadge {
Component {
id: communityBadgeComponent
ActivityCenter.CommunityBadge {
width: childrenRect.width
height: parent.height
@ -74,9 +77,11 @@ Rectangle {
onCommunityNameClicked: communityNameClicked()
onChannelNameClicked: channelNameClicked()
}
}
ActivityCenter.ChannelBadge {
Component {
id: channelBadgeComponent
ActivityCenter.ChannelBadge {
width: childrenRect.width
height: parent.height
@ -88,3 +93,4 @@ Rectangle {
identicon: wrapper.identicon
}
}
}