This commit is contained in:
iNPUTmice 2014-06-30 10:46:46 +02:00
parent 53533ca74e
commit 42ad901356
2 changed files with 12 additions and 1 deletions

View File

@ -1482,4 +1482,15 @@ public class XmppConnectionService extends Service {
account.getXmppConnection().sendMessagePacket(error); account.getXmppConnection().sendMessagePacket(error);
} }
} }
public void syncRosterToDisk(final Account account) {
new Thread(new Runnable() {
@Override
public void run() {
databaseBackend.writeRoster(account.getRoster());
}
}).start();
}
} }

View File

@ -482,7 +482,7 @@ public class UIHelper {
public void onClick(DialogInterface dialog, int which) { public void onClick(DialogInterface dialog, int which) {
contact.addOtrFingerprint(conversation.getOtrFingerprint()); contact.addOtrFingerprint(conversation.getOtrFingerprint());
msg.setVisibility(View.GONE); msg.setVisibility(View.GONE);
//activity.xmppConnectionService.updateContact(contact); activity.xmppConnectionService.syncRosterToDisk(account);
} }
}); });
builder.setView(view); builder.setView(view);