diff options
author | iNPUTmice <daniel@gultsch.de> | 2015-02-21 22:19:10 +0100 |
---|---|---|
committer | iNPUTmice <daniel@gultsch.de> | 2015-02-21 22:19:10 +0100 |
commit | 3db5a48529949b2219b036495f412ea383707524 (patch) | |
tree | e7b4995276dcc641df354b6d88de9f52d3d85e57 /src/main/java/eu/siacs/conversations/entities | |
parent | 7ee5e959597cfded524c7179b663138aca781ad8 (diff) |
clear muc tiles cache only when necessary
Diffstat (limited to 'src/main/java/eu/siacs/conversations/entities')
-rw-r--r-- | src/main/java/eu/siacs/conversations/entities/MucOptions.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/main/java/eu/siacs/conversations/entities/MucOptions.java b/src/main/java/eu/siacs/conversations/entities/MucOptions.java index 27821c651..2fd4db74d 100644 --- a/src/main/java/eu/siacs/conversations/entities/MucOptions.java +++ b/src/main/java/eu/siacs/conversations/entities/MucOptions.java @@ -150,6 +150,21 @@ public class MucOptions { } } + @Override + public boolean equals(Object other) { + if (this == other) { + return true; + } else if (!(other instanceof User)) { + return false; + } else { + User o = (User) other; + return name != null && name.equals(o.name) + && jid != null && jid.equals(o.jid) + && affiliation == o.affiliation + && role == o.role; + } + } + public Affiliation getAffiliation() { return this.affiliation; } |