diff options
author | iNPUTmice <daniel@gultsch.de> | 2014-06-30 10:46:46 +0200 |
---|---|---|
committer | iNPUTmice <daniel@gultsch.de> | 2014-06-30 10:46:46 +0200 |
commit | 42ad901356e6bd51ab8597716779e284f67afd93 (patch) | |
tree | e340efeada93ac9e7aee7bff7ebb368029f40b76 /src/eu/siacs | |
parent | 53533ca74e4b395917088ffd26391cb8da1d2a73 (diff) |
fixed #228
Diffstat (limited to 'src/eu/siacs')
-rw-r--r-- | src/eu/siacs/conversations/services/XmppConnectionService.java | 11 | ||||
-rw-r--r-- | src/eu/siacs/conversations/utils/UIHelper.java | 2 |
2 files changed, 12 insertions, 1 deletions
diff --git a/src/eu/siacs/conversations/services/XmppConnectionService.java b/src/eu/siacs/conversations/services/XmppConnectionService.java index 32a014608..64acc3ea3 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(); + + } } diff --git a/src/eu/siacs/conversations/utils/UIHelper.java b/src/eu/siacs/conversations/utils/UIHelper.java index 6125e3155..d4e2c8058 100644 --- a/src/eu/siacs/conversations/utils/UIHelper.java +++ b/src/eu/siacs/conversations/utils/UIHelper.java @@ -482,7 +482,7 @@ public class UIHelper { public void onClick(DialogInterface dialog, int which) { contact.addOtrFingerprint(conversation.getOtrFingerprint()); msg.setVisibility(View.GONE); - //activity.xmppConnectionService.updateContact(contact); + activity.xmppConnectionService.syncRosterToDisk(account); } }); builder.setView(view); |