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:
parent
6ba74fae8e
commit
28e9b6da27
|
@ -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
|
||||
|
|
|
@ -391,7 +391,7 @@ QtObject {
|
|||
|
||||
function openCommunityMemberMessagesPopup(store, chatCommunitySectionModule, memberPubKey, displayName) {
|
||||
openPopup(communityMemberMessagesPopup, {
|
||||
store: store,
|
||||
rootStore: store,
|
||||
chatCommunitySectionModule: chatCommunitySectionModule,
|
||||
memberPubKey: memberPubKey,
|
||||
displayName: displayName
|
||||
|
|
|
@ -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 = {
|
||||
|
|
Loading…
Reference in New Issue