Commit 25437290 authored by Tijmen de Mes's avatar Tijmen de Mes

Only remove conversation per account/contact

parent a7bdbd2f
......@@ -428,8 +428,8 @@ class MessageHistory(object, metaclass=Singleton):
Message.deleteBy(account=account)
@run_in_thread('db')
def remove_contact_messages(self, contact):
Message.deleteBy(remote_uri=contact)
def remove_contact_messages(self, account, contact):
Message.deleteBy(remote_uri=contact, account_id=str(account.id))
@run_in_thread('db')
def remove_message(self, id):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment