fix(@desktop/chat): blocked user messages disappear after the user is blocked

Fixes: #3418
This commit is contained in:
Sale Djenic 2021-09-20 16:45:12 +02:00 committed by Iuri Matias
parent 9204d495c6
commit b5e8132859
2 changed files with 0 additions and 14 deletions

View File

@ -529,9 +529,6 @@ Item {
onContactListChanged: {
isBlocked = profileModel.contacts.isContactBlocked(activeChatId);
}
onContactBlocked: {
chatsModel.messageView.removeMessagesByUserId(publicKey)
}
}
Connections {

View File

@ -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: {