chore(community): remove pinned messages button in

Fixes #4617
This commit is contained in:
Jonathan Rainville 2022-02-01 11:41:28 -05:00
parent 0f682658bc
commit b6c78396f8
5 changed files with 0 additions and 63 deletions

View File

@ -24,7 +24,6 @@ StatusModal {
signal createCommunityChannel(string chName, string chDescription, string chCategoryId) signal createCommunityChannel(string chName, string chDescription, string chCategoryId)
signal editCommunityChannel(string chName, string chDescription, string chCategoryId) signal editCommunityChannel(string chName, string chDescription, string chCategoryId)
signal openPinnedMessagesPopup()
//% "New channel" //% "New channel"
header.title: qsTrId("create-channel-title") header.title: qsTrId("create-channel-title")
@ -164,29 +163,6 @@ StatusModal {
width: parent.width width: parent.width
height: 8 height: 8
} }
StatusListItem {
anchors.horizontalCenter: parent.horizontalCenter
//% "Pinned messages"
title: qsTrId("pinned-messages")
icon.name: "pin"
components: [
StatusIcon {
icon: "chevron-down"
rotation: 270
color: Theme.palette.baseColor1
}
]
sensor.onClicked: {
popup.openPinnedMessagesPopup()
}
}
Item {
width: parent.width
height: 8
}
} }
} }

View File

@ -226,19 +226,6 @@ ColumnLayout {
channel: chatContentModule.chatDetails channel: chatContentModule.chatDetails
}) })
} }
onOpenPinnedMessagesList: {
if(!chatContentModule) {
console.debug("error on open pinned messages from context menu - chat content module is not set")
return
}
Global.openPopup(pinnedMessagesPopupComponent, {
store: rootStore,
messageStore: messageStore,
pinnedMessagesModel: chatContentModule.pinnedMessagesModel,
messageToPin: ""
})
}
} }
} }

View File

@ -36,7 +36,6 @@ StatusPopupMenu {
signal deleteCommunityChat(string chatId) signal deleteCommunityChat(string chatId)
signal leaveChat(string chatId) signal leaveChat(string chatId)
signal openPinnedMessagesList(string chatId)
signal createCommunityChannel(string chatId, string newName, string newDescription) signal createCommunityChannel(string chatId, string newName, string newDescription)
signal editCommunityChannel(string chatId, string newName, string newDescription, string newCategory) signal editCommunityChannel(string chatId, string newName, string newDescription, string newCategory)
@ -143,9 +142,6 @@ StatusPopupMenu {
onEditCommunityChannel: { onEditCommunityChannel: {
root.editCommunityChannel(root.chatId, chName, chDescription, chCategoryId); root.editCommunityChannel(root.chatId, chName, chDescription, chCategoryId);
} }
onOpenPinnedMessagesPopup: {
root.openPinnedMessagesList(root.chatId, chName, chDescription);
}
onClosed: { onClosed: {
destroy() destroy()
} }

View File

@ -330,17 +330,6 @@ Item {
channelPosition // TODO change this to the signal once it is modifiable channelPosition // TODO change this to the signal once it is modifiable
) )
} }
onOpenPinnedMessagesList: {
chatCommunitySectionModule.prepareChatContentModuleForChatId(chatId)
let chatContentModule = chatCommunitySectionModule.getChatContentModule()
Global.openPopup(pinnedMessagesPopupComponent, {
store: root.store,
messageStore: messageStore,
pinnedMessagesModel: chatContentModule.pinnedMessagesModel,
messageToPin: ""
})
}
} }
} }

View File

@ -301,17 +301,6 @@ Item {
channel: chatContentModule.chatDetails channel: chatContentModule.chatDetails
}) })
} }
onOpenPinnedMessagesList: {
chatCommunitySectionModule.prepareChatContentModuleForChatId(chatId)
let chatContentModule = chatCommunitySectionModule.getChatContentModule()
Global.openPopup(pinnedMessagesPopupComponent, {
store: root.store,
messageStore: messageStore,
pinnedMessagesModel: chatContentModule.pinnedMessagesModel,
messageToPin: ""
})
}
} }
} }