mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-17 09:08:49 +00:00
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: {
|
onContactListChanged: {
|
||||||
isBlocked = profileModel.contacts.isContactBlocked(activeChatId);
|
isBlocked = profileModel.contacts.isContactBlocked(activeChatId);
|
||||||
}
|
}
|
||||||
onContactBlocked: {
|
|
||||||
chatsModel.messageView.removeMessagesByUserId(publicKey)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Connections {
|
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 {
|
Connections {
|
||||||
target: chatsModel.messageView
|
target: chatsModel.messageView
|
||||||
onHideMessage: {
|
onHideMessage: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user