aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs/conversations/services
diff options
context:
space:
mode:
authoriNPUTmice <daniel@gultsch.de>2014-06-30 10:46:46 +0200
committeriNPUTmice <daniel@gultsch.de>2014-06-30 10:46:46 +0200
commit42ad901356e6bd51ab8597716779e284f67afd93 (patch)
treee340efeada93ac9e7aee7bff7ebb368029f40b76 /src/eu/siacs/conversations/services
parent53533ca74e4b395917088ffd26391cb8da1d2a73 (diff)
fixed #228
Diffstat (limited to '')
-rw-r--r--src/eu/siacs/conversations/services/XmppConnectionService.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/eu/siacs/conversations/services/XmppConnectionService.java b/src/eu/siacs/conversations/services/XmppConnectionService.java
index 32a01460..64acc3ea 100644
--- a/src/eu/siacs/conversations/services/XmppConnectionService.java
+++ b/src/eu/siacs/conversations/services/XmppConnectionService.java
@@ -1482,4 +1482,15 @@ public class XmppConnectionService extends Service {
account.getXmppConnection().sendMessagePacket(error);
}
}
+
+ public void syncRosterToDisk(final Account account) {
+ new Thread(new Runnable() {
+
+ @Override
+ public void run() {
+ databaseBackend.writeRoster(account.getRoster());
+ }
+ }).start();
+
+ }
}