diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2015-12-04 21:36:48 +0100 |
---|---|---|
committer | Christian S <christian@pix-art.de> | 2015-12-06 10:57:23 +0100 |
commit | ef97ce119a92355236a49aeccec81872a7452141 (patch) | |
tree | b4ba4506e0e5aa76185c6b5fca35f110a1731562 /src/main/java/eu/siacs/conversations/entities/MucOptions.java | |
parent | 7eac947c2bfa387fedc781fed24e8b612236b28a (diff) |
properly clear muc user avatar caches
Diffstat (limited to 'src/main/java/eu/siacs/conversations/entities/MucOptions.java')
-rw-r--r-- | src/main/java/eu/siacs/conversations/entities/MucOptions.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/main/java/eu/siacs/conversations/entities/MucOptions.java b/src/main/java/eu/siacs/conversations/entities/MucOptions.java index 92254b906..853a8408f 100644 --- a/src/main/java/eu/siacs/conversations/entities/MucOptions.java +++ b/src/main/java/eu/siacs/conversations/entities/MucOptions.java @@ -213,8 +213,13 @@ public class MucOptions { return getAccount().getRoster().getContactFromRoster(getJid()); } - public void setAvatar(Avatar avatar) { - this.avatar = avatar; + public boolean setAvatar(Avatar avatar) { + if (this.avatar != null && this.avatar.equals(avatar)) { + return false; + } else { + this.avatar = avatar; + return true; + } } public String getAvatar() { |