Skip to content
Snippets Groups Projects
Commit cc61e2c5 authored by Albert  Babí Oller's avatar Albert Babí Oller
Browse files

misc: update view on contact banned

- use of specific MessagesAdapter::blockConversation function
- signal contactBanned subscription
- fix missing string

Gitlab: #82

Change-Id: I5e35d0939f8a5f23208f91f19bbb9cc2047b33b4
parent efba12c9
No related branches found
No related tags found
No related merge requests found
...@@ -577,6 +577,10 @@ Window { ...@@ -577,6 +577,10 @@ Window {
function onNeedToUpdateSmartList() { function onNeedToUpdateSmartList() {
mainViewWindowSidePanel.forceUpdateConversationSmartListView() mainViewWindowSidePanel.forceUpdateConversationSmartListView()
} }
function onContactBanned() {
showWelcomeView()
}
} }
onNeedToGoBackToWelcomeView: { onNeedToGoBackToWelcomeView: {
......
...@@ -129,10 +129,7 @@ ListView { ...@@ -129,10 +129,7 @@ ListView {
context: Qt.ApplicationShortcut context: Qt.ApplicationShortcut
enabled: root.visible enabled: root.visible
onActivated: { onActivated: {
UtilsAdapter.removeConversation(UtilsAdapter.getCurrAccId(), MessagesAdapter.blockConversation(UtilsAdapter.getCurrConvId())
UtilsAdapter.getCurrConvId(),
true)
root.needToBackToWelcomePage()
} }
} }
......
...@@ -151,7 +151,7 @@ ItemDelegate { ...@@ -151,7 +151,7 @@ ItemDelegate {
backgroundColor: "transparent" backgroundColor: "transparent"
ToolTip.visible: hovered ToolTip.visible: hovered
ToolTip.text: reinstateContact ToolTip.text: JamiStrings.reinstateContact
onClicked: { onClicked: {
btnReAddContactClicked() btnReAddContactClicked()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment