fix(Groups): Add empty community id for functions call and change `model.pubKey` to `model.id`

Closes: #5203
This commit is contained in:
Boris Melnik 2022-03-28 13:19:15 +03:00 committed by Iuri Matias
parent 31132e3a7e
commit 72409d87ce
1 changed files with 3 additions and 3 deletions

View File

@ -239,7 +239,7 @@ StatusModal {
icon.height: 16
//% "Make Admin"
text: qsTrId("make-admin")
onTriggered: popup.chatSectionModule.makeAdmin(popup.chatDetails.id, model.id)
onTriggered: popup.chatSectionModule.makeAdmin("", popup.chatDetails.id, model.id)
}
StatusMenuItem {
icon.name: "remove-contact"
@ -248,13 +248,13 @@ StatusModal {
type: StatusMenuItem.Type.Danger
//% "Remove From Group"
text: qsTrId("remove-from-group")
onTriggered: popup.chatSectionModule.removeMemberFromGroupChat(popup.chatDetails.id, model.id)
onTriggered: popup.chatSectionModule.removeMemberFromGroupChat("", popup.chatDetails.id, model.id)
}
}
}
]
onTitleClicked: {
Global.openProfilePopup(model.publicKey, popup)
Global.openProfilePopup(model.id, popup)
}
}
}