fix(ActivityCenterMessageComponentView): ensure popups and model expressions are working
Those most likely broke as part of the refactor.
This commit is contained in:
parent
056d7815a4
commit
a95348b289
|
@ -7,6 +7,7 @@ import "../../../../shared/popups"
|
||||||
|
|
||||||
import "../controls"
|
import "../controls"
|
||||||
import "../panels"
|
import "../panels"
|
||||||
|
import "../popups"
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: root
|
id: root
|
||||||
|
@ -229,7 +230,7 @@ Item {
|
||||||
chatId: model.chatId
|
chatId: model.chatId
|
||||||
notificationType: model.notificationType
|
notificationType: model.notificationType
|
||||||
communityId: model.message.communityId
|
communityId: model.message.communityId
|
||||||
replyMessageIndex: chatsModel.messageView.getMessageIndex(chatId, responseTo)
|
replyMessageIndex: chatsModel.messageView.getMessageIndex(model.chatId, model.responseTo)
|
||||||
repliedMessageContent: replyMessageIndex > -1 ? chatsModel.messageView.getMessageData(chatId, replyMessageIndex, "message") : ""
|
repliedMessageContent: replyMessageIndex > -1 ? chatsModel.messageView.getMessageData(chatId, replyMessageIndex, "message") : ""
|
||||||
realChatType: {
|
realChatType: {
|
||||||
var chatType = chatsModel.channelView.chats.getChannelType(model.chatId)
|
var chatType = chatsModel.channelView.chats.getChannelType(model.chatId)
|
||||||
|
@ -243,7 +244,7 @@ Item {
|
||||||
channelName: chatsModel.getChannelNameById(badge.chatId)
|
channelName: chatsModel.getChannelNameById(badge.chatId)
|
||||||
communityName: root.communityIndex > -1 ? chatsModel.communities.joinedCommunities.rowData(root.communityIndex, "name") : ""
|
communityName: root.communityIndex > -1 ? chatsModel.communities.joinedCommunities.rowData(root.communityIndex, "name") : ""
|
||||||
communityThumbnailImage: root.communityIndex > -1 ? chatsModel.communities.joinedCommunities.rowData(root.communityIndex, "thumbnailImage") : ""
|
communityThumbnailImage: root.communityIndex > -1 ? chatsModel.communities.joinedCommunities.rowData(root.communityIndex, "thumbnailImage") : ""
|
||||||
communityColor: !image && root.communityIndex > -1 ? chatsModel.communities.joinedCommunities.rowData(root.communityIndex, "communityColor"): ""
|
communityColor: !model.image && root.communityIndex > -1 ? chatsModel.communities.joinedCommunities.rowData(root.communityIndex, "communityColor"): ""
|
||||||
|
|
||||||
onCommunityNameClicked: {
|
onCommunityNameClicked: {
|
||||||
chatsModel.communities.setActiveCommunity(badge.communityId)
|
chatsModel.communities.setActiveCommunity(badge.communityId)
|
||||||
|
|
Loading…
Reference in New Issue