diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2014-04-20 20:48:16 +0200 |
---|---|---|
committer | Daniel Gultsch <daniel@gultsch.de> | 2014-04-20 20:48:16 +0200 |
commit | d140ef63903ac36a39bc558aa4b9aa319aed0b08 (patch) | |
tree | f1fd1517f50693877f9d229b1ac6f867247a33f9 /src/eu/siacs/conversations/services/XmppConnectionService.java | |
parent | 8003e53013b72736db2137c51400fd0c5f124ffb (diff) |
fixed #50
Diffstat (limited to 'src/eu/siacs/conversations/services/XmppConnectionService.java')
-rw-r--r-- | src/eu/siacs/conversations/services/XmppConnectionService.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/eu/siacs/conversations/services/XmppConnectionService.java b/src/eu/siacs/conversations/services/XmppConnectionService.java index 5e4e2561..49cb6288 100644 --- a/src/eu/siacs/conversations/services/XmppConnectionService.java +++ b/src/eu/siacs/conversations/services/XmppConnectionService.java @@ -1035,7 +1035,12 @@ public class XmppConnectionService extends Service { } public void clearConversationHistory(Conversation conversation) { - + this.databaseBackend.deleteMessagesInConversation(conversation); + this.fileBackend.removeFiles(conversation); + conversation.getMessages().clear(); + if (this.convChangedListener != null) { + this.convChangedListener.onConversationListChanged(); + } } public int getConversationCount() { |