fixed #228
This commit is contained in:
parent
53533ca74e
commit
42ad901356
|
@ -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();
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue