summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2011-07-09 13:45:46 (GMT)
committerKevin Smith <git@kismith.co.uk>2011-07-09 13:45:46 (GMT)
commitdd6fe37580c5a0d9426312287cb4ed31116d8c4c (patch)
tree18d3fce2bda00090fc9a6b94922c6b87e192fb8b /Swift/Controllers/Chat/MUCController.cpp
parentc2dc47077e505ba1d45f203772dc6aa4f26656e4 (diff)
downloadswift-dd6fe37580c5a0d9426312287cb4ed31116d8c4c.zip
swift-dd6fe37580c5a0d9426312287cb4ed31116d8c4c.tar.bz2
Keep MUCs in the recent chats list.
Populate them with Available StatusShow::Type when they're joined, and None when they're not. Resolves: #907
Diffstat (limited to 'Swift/Controllers/Chat/MUCController.cpp')
-rw-r--r--Swift/Controllers/Chat/MUCController.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/Swift/Controllers/Chat/MUCController.cpp b/Swift/Controllers/Chat/MUCController.cpp
index ac4689f..2ac6109 100644
--- a/Swift/Controllers/Chat/MUCController.cpp
+++ b/Swift/Controllers/Chat/MUCController.cpp
@@ -110,6 +110,14 @@ void MUCController::rejoin() {
}
}
+bool MUCController::isJoined() {
+ return joined_;
+}
+
+const std::string& MUCController::getNick() {
+ return nick_;
+}
+
void MUCController::handleJoinTimeoutTick() {
receivedActivity();
chatWindow_->addSystemMessage(str(format(QT_TRANSLATE_NOOP("", "Room %1% is not responding. This operation may never complete.")) % toJID_.toString()));