clear avatar cache when uploading new avatar

This commit is contained in:
Daniel Gultsch 2015-05-13 14:33:52 +02:00
parent 51aeeb766c
commit 6489ddac6c
1 changed files with 1 additions and 0 deletions

View File

@ -1879,6 +1879,7 @@ public class XmppConnectionService extends Service implements OnPhoneContactsLoa
IqPacket result) {
if (result.getType() == IqPacket.TYPE.RESULT) {
if (account.setAvatar(avatar.getFilename())) {
getAvatarService().clear(account);
databaseBackend.updateAccount(account);
}
callback.success(avatar);