fix(@desktop/chat): blocked user messages disappear after the user is blocked
Fixes: #3418
This commit is contained in:
parent
9204d495c6
commit
b5e8132859
|
@ -529,9 +529,6 @@ Item {
|
|||
onContactListChanged: {
|
||||
isBlocked = profileModel.contacts.isContactBlocked(activeChatId);
|
||||
}
|
||||
onContactBlocked: {
|
||||
chatsModel.messageView.removeMessagesByUserId(publicKey)
|
||||
}
|
||||
}
|
||||
|
||||
Connections {
|
||||
|
|
|
@ -158,17 +158,6 @@ Item {
|
|||
}
|
||||
}
|
||||
|
||||
Connections {
|
||||
target: profileModel.contacts
|
||||
onContactBlocked: {
|
||||
// This hack is used because removeMessagesByUserId sometimes does not remove the messages
|
||||
if(publicKey === fromAuthor){
|
||||
root.visible = 0;
|
||||
root.height = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Connections {
|
||||
target: chatsModel.messageView
|
||||
onHideMessage: {
|
||||
|
|
Loading…
Reference in New Issue