summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2011-05-12 16:02:33 (GMT)
committerKevin Smith <git@kismith.co.uk>2011-05-12 16:02:33 (GMT)
commit8a18d6692c246adf14a8b0aec270f9b96d1b4baf (patch)
treee2f327fa3f1bb6486949e0be3dfec25f8b855d9e /Swift/Controllers/UIInterfaces
parente8c0dfa8173b3e6bf1b8274d183f633585a0bec5 (diff)
downloadswift-8a18d6692c246adf14a8b0aec270f9b96d1b4baf.zip
swift-8a18d6692c246adf14a8b0aec270f9b96d1b4baf.tar.bz2
Remove duplicate entries from the recent chat list.
Resolves: #860
Diffstat (limited to 'Swift/Controllers/UIInterfaces')
-rw-r--r--Swift/Controllers/UIInterfaces/ChatListWindow.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Swift/Controllers/UIInterfaces/ChatListWindow.h b/Swift/Controllers/UIInterfaces/ChatListWindow.h
index f717684..a52f24d 100644
--- a/Swift/Controllers/UIInterfaces/ChatListWindow.h
+++ b/Swift/Controllers/UIInterfaces/ChatListWindow.h
@@ -17,7 +17,7 @@ namespace Swift {
public:
Chat(const JID& jid, const std::string& chatName, const std::string& activity, bool isMUC, const std::string& nick = "") : jid(jid), chatName(chatName), activity(activity), isMUC(isMUC), nick(nick) {}
/** Assume that nicks aren't important for equality */
- bool operator==(const Chat& other) const {return jid == other.jid && isMUC == other.isMUC;};
+ bool operator==(const Chat& other) const {return jid.toBare() == other.jid.toBare() && isMUC == other.isMUC;};
JID jid;
std::string chatName;
std::string activity;