fix(CommunityMemberMessagesPopup): fix displaying of messages

- fix a refactoring bug in the stores
- disable the context menu since it's not really usefull and we're still
missing like a dozen of stores needed for MessageView anyway
This commit is contained in:
Lukáš Tinkl 2024-10-10 17:32:18 +02:00 committed by Lukáš Tinkl
parent 6ba74fae8e
commit 28e9b6da27
3 changed files with 7 additions and 5 deletions

View File

@ -65,10 +65,9 @@ StatusDialog {
width: parent.width
sharedRootStore: root.sharedRootStore
rootStore: root.store
rootStore: root.rootStore
chatCommunitySectionModule: root.chatCommunitySectionModule
messageStore: root.memberMessagesModel
messageStore: root.rootStore.messageStore
messageId: model.id
chatId: model.chatId
responseToMessageWithId: model.responseToMessageWithId

View File

@ -391,7 +391,7 @@ QtObject {
function openCommunityMemberMessagesPopup(store, chatCommunitySectionModule, memberPubKey, displayName) {
openPopup(communityMemberMessagesPopup, {
store: store,
rootStore: store,
chatCommunitySectionModule: chatCommunitySectionModule,
memberPubKey: memberPubKey,
displayName: displayName

View File

@ -152,6 +152,9 @@ Loader {
|| messageContentType === Constants.messageContentType.communityInviteType || messageContentType === Constants.messageContentType.transactionType
function openProfileContextMenu(sender, mouse, isReply = false) {
if (isViewMemberMessagesePopup)
return false
if (isReply && !quotedMessageFrom) {
// The responseTo message was deleted
// so we don't enable to right click the unavailable profile
@ -174,7 +177,7 @@ Loader {
}
function openMessageContextMenu() {
if (placeholderMessage || !root.rootStore.mainModuleInst.activeSection.joined)
if (isViewMemberMessagesePopup || placeholderMessage || !root.rootStore.mainModuleInst.activeSection.joined)
return
const params = {