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
|
width: parent.width
|
||||||
|
|
||||||
sharedRootStore: root.sharedRootStore
|
sharedRootStore: root.sharedRootStore
|
||||||
rootStore: root.store
|
rootStore: root.rootStore
|
||||||
chatCommunitySectionModule: root.chatCommunitySectionModule
|
chatCommunitySectionModule: root.chatCommunitySectionModule
|
||||||
messageStore: root.memberMessagesModel
|
messageStore: root.rootStore.messageStore
|
||||||
|
|
||||||
messageId: model.id
|
messageId: model.id
|
||||||
chatId: model.chatId
|
chatId: model.chatId
|
||||||
responseToMessageWithId: model.responseToMessageWithId
|
responseToMessageWithId: model.responseToMessageWithId
|
||||||
|
|
|
@ -391,7 +391,7 @@ QtObject {
|
||||||
|
|
||||||
function openCommunityMemberMessagesPopup(store, chatCommunitySectionModule, memberPubKey, displayName) {
|
function openCommunityMemberMessagesPopup(store, chatCommunitySectionModule, memberPubKey, displayName) {
|
||||||
openPopup(communityMemberMessagesPopup, {
|
openPopup(communityMemberMessagesPopup, {
|
||||||
store: store,
|
rootStore: store,
|
||||||
chatCommunitySectionModule: chatCommunitySectionModule,
|
chatCommunitySectionModule: chatCommunitySectionModule,
|
||||||
memberPubKey: memberPubKey,
|
memberPubKey: memberPubKey,
|
||||||
displayName: displayName
|
displayName: displayName
|
||||||
|
|
|
@ -152,6 +152,9 @@ Loader {
|
||||||
|| messageContentType === Constants.messageContentType.communityInviteType || messageContentType === Constants.messageContentType.transactionType
|
|| messageContentType === Constants.messageContentType.communityInviteType || messageContentType === Constants.messageContentType.transactionType
|
||||||
|
|
||||||
function openProfileContextMenu(sender, mouse, isReply = false) {
|
function openProfileContextMenu(sender, mouse, isReply = false) {
|
||||||
|
if (isViewMemberMessagesePopup)
|
||||||
|
return false
|
||||||
|
|
||||||
if (isReply && !quotedMessageFrom) {
|
if (isReply && !quotedMessageFrom) {
|
||||||
// The responseTo message was deleted
|
// The responseTo message was deleted
|
||||||
// so we don't enable to right click the unavailable profile
|
// so we don't enable to right click the unavailable profile
|
||||||
|
@ -174,7 +177,7 @@ Loader {
|
||||||
}
|
}
|
||||||
|
|
||||||
function openMessageContextMenu() {
|
function openMessageContextMenu() {
|
||||||
if (placeholderMessage || !root.rootStore.mainModuleInst.activeSection.joined)
|
if (isViewMemberMessagesePopup || placeholderMessage || !root.rootStore.mainModuleInst.activeSection.joined)
|
||||||
return
|
return
|
||||||
|
|
||||||
const params = {
|
const params = {
|
||||||
|
|
Loading…
Reference in New Issue