Change summary
src/eu/siacs/conversations/services/XmppConnectionService.java | 11 ++++
src/eu/siacs/conversations/utils/UIHelper.java | 2
2 files changed, 12 insertions(+), 1 deletion(-)
Detailed changes
@@ -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();
+
+ }
}
@@ -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);