mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-07-12 19:45:23 +02:00
misc: update view on contact banned
- use of specific MessagesAdapter::blockConversation function - signal contactBanned subscription - fix missing string Gitlab: #82 Change-Id: I5e35d0939f8a5f23208f91f19bbb9cc2047b33b4
This commit is contained in:
parent
efba12c9f3
commit
cc61e2c576
3 changed files with 6 additions and 5 deletions
|
@ -577,6 +577,10 @@ Window {
|
|||
function onNeedToUpdateSmartList() {
|
||||
mainViewWindowSidePanel.forceUpdateConversationSmartListView()
|
||||
}
|
||||
|
||||
function onContactBanned() {
|
||||
showWelcomeView()
|
||||
}
|
||||
}
|
||||
|
||||
onNeedToGoBackToWelcomeView: {
|
||||
|
|
|
@ -129,10 +129,7 @@ ListView {
|
|||
context: Qt.ApplicationShortcut
|
||||
enabled: root.visible
|
||||
onActivated: {
|
||||
UtilsAdapter.removeConversation(UtilsAdapter.getCurrAccId(),
|
||||
UtilsAdapter.getCurrConvId(),
|
||||
true)
|
||||
root.needToBackToWelcomePage()
|
||||
MessagesAdapter.blockConversation(UtilsAdapter.getCurrConvId())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -151,7 +151,7 @@ ItemDelegate {
|
|||
backgroundColor: "transparent"
|
||||
|
||||
ToolTip.visible: hovered
|
||||
ToolTip.text: reinstateContact
|
||||
ToolTip.text: JamiStrings.reinstateContact
|
||||
|
||||
onClicked: {
|
||||
btnReAddContactClicked()
|
||||
|
|
Loading…
Add table
Reference in a new issue