aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs/conversations/services
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2014-04-20 20:48:16 +0200
committerDaniel Gultsch <daniel@gultsch.de>2014-04-20 20:48:16 +0200
commitd140ef63903ac36a39bc558aa4b9aa319aed0b08 (patch)
treef1fd1517f50693877f9d229b1ac6f867247a33f9 /src/eu/siacs/conversations/services
parent8003e53013b72736db2137c51400fd0c5f124ffb (diff)
fixed #50
Diffstat (limited to 'src/eu/siacs/conversations/services')
-rw-r--r--src/eu/siacs/conversations/services/XmppConnectionService.java7
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() {