diff options
Diffstat (limited to 'Swift/Controllers')
-rw-r--r-- | Swift/Controllers/Chat/Chattables.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Swift/Controllers/Chat/Chattables.cpp b/Swift/Controllers/Chat/Chattables.cpp index b75e18d..599ff48 100644 --- a/Swift/Controllers/Chat/Chattables.cpp +++ b/Swift/Controllers/Chat/Chattables.cpp @@ -18,6 +18,9 @@ const Chattables::State& Chattables::getState(const JID& jid) const { } void Chattables::addJID(const JID& jid, State::Type type) { + if (states_.find(jid) != states_.end()) { + return; + } State state; state.type = type; state.jid = jid; |