diff options
author | Kevin Smith <git@kismith.co.uk> | 2012-04-27 14:58:37 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2012-04-27 14:58:37 (GMT) |
commit | 9e57b31133edad6a543da05aca54ee94d589b090 (patch) | |
tree | 85b5fa4c4669677a5b4e6d263bbf153077bee357 /Swift/Controllers/Chat/ChatController.cpp | |
parent | c1944713513ae5262e9960a7ef391f4bb915e999 (diff) | |
download | swift-contrib-9e57b31133edad6a543da05aca54ee94d589b090.zip swift-contrib-9e57b31133edad6a543da05aca54ee94d589b090.tar.bz2 |
Reset state of collapsing presence when a chat window is cleared.
To stop new presence being lost because it's trying to append to old (deleted) data.
Resolves: #925
Diffstat (limited to 'Swift/Controllers/Chat/ChatController.cpp')
-rw-r--r-- | Swift/Controllers/Chat/ChatController.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Swift/Controllers/Chat/ChatController.cpp b/Swift/Controllers/Chat/ChatController.cpp index 3f16071..5a18a98 100644 --- a/Swift/Controllers/Chat/ChatController.cpp +++ b/Swift/Controllers/Chat/ChatController.cpp @@ -91,6 +91,10 @@ ChatController::~ChatController() { delete chatStateTracker_; } +void ChatController::cancelReplaces() { + lastWasPresence_ = false; +} + void ChatController::handleBareJIDCapsChanged(const JID& /*jid*/) { DiscoInfo::ref disco = entityCapsProvider_->getCaps(toJID_); if (disco) { |