summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2012-09-15 10:25:49 (GMT)
committerKevin Smith <git@kismith.co.uk>2012-09-15 10:25:49 (GMT)
commita8a3cc2ba4392f7b4f6c31dc60109cdd174e8827 (patch)
tree69e74db735933da45defe0576ca33cf22549ed1e /Swift/Controllers/Chat/MUCController.cpp
parentca8ee84e53e7d4910a7c17cf05e70b0b3377c9c3 (diff)
downloadswift-contrib-a8a3cc2ba4392f7b4f6c31dc60109cdd174e8827.zip
swift-contrib-a8a3cc2ba4392f7b4f6c31dc60109cdd174e8827.tar.bz2
Use last activity for requesting history again in MUCs without experimental
Diffstat (limited to 'Swift/Controllers/Chat/MUCController.cpp')
-rw-r--r--Swift/Controllers/Chat/MUCController.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/Swift/Controllers/Chat/MUCController.cpp b/Swift/Controllers/Chat/MUCController.cpp
index 6a8cbcf..50eee68 100644
--- a/Swift/Controllers/Chat/MUCController.cpp
+++ b/Swift/Controllers/Chat/MUCController.cpp
@@ -199,10 +199,13 @@ void MUCController::rejoin() {
if (lastActivity_ == boost::posix_time::not_a_date_time && historyController_) {
lastActivity_ = historyController_->getLastTimeStampFromMUC(selfJID_, toJID_);
}
- muc_->joinWithContextSince(nick_, lastActivity_);
-#else
- muc_->joinAs(nick_);
#endif
+ if (lastActivity_ == boost::posix_time::not_a_date_time) {
+ muc_->joinAs(nick_);
+ }
+ else {
+ muc_->joinWithContextSince(nick_, lastActivity_);
+ }
}
}