diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2015-12-04 21:36:48 +0100 |
---|---|---|
committer | Daniel Gultsch <daniel@gultsch.de> | 2015-12-04 21:36:48 +0100 |
commit | cd9a29718bcf961cdae2bb88ad65066e7347bfb5 (patch) | |
tree | 17631aa2cc0ab2d161a268b3b6833dca2aaa9669 /src/main/java/eu/siacs/conversations/services/XmppConnectionService.java | |
parent | 9d1e8a34b2397abe3d21c91f05df19f43eada2bd (diff) |
properly clear muc user avatar caches
Diffstat (limited to 'src/main/java/eu/siacs/conversations/services/XmppConnectionService.java')
-rw-r--r-- | src/main/java/eu/siacs/conversations/services/XmppConnectionService.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java b/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java index 77606956..dbc4825c 100644 --- a/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java +++ b/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java @@ -2367,7 +2367,11 @@ public class XmppConnectionService extends Service implements OnPhoneContactsLoa if (conversation != null && conversation.getMode() == Conversation.MODE_MULTI) { MucOptions.User user = conversation.getMucOptions().findUser(avatar.owner.getResourcepart()); if (user != null) { - user.setAvatar(avatar); + if (user.setAvatar(avatar)) { + getAvatarService().clear(user); + updateConversationUi(); + updateMucRosterUi(); + } } } } |