summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2013-03-28 09:06:07 (GMT)
committerSwift Review <review@swift.im>2013-03-31 11:42:49 (GMT)
commitdfa83363f4f8c8faa77be4c410d960a4cf39ec43 (patch)
treeb025069ccfc8293b234d4a6f9808ada1b772c251 /Swift/QtUI
parentcc502f8a172e24f407cad40a049334ff79ac952a (diff)
downloadswift-dfa83363f4f8c8faa77be4c410d960a4cf39ec43.zip
swift-dfa83363f4f8c8faa77be4c410d960a4cf39ec43.tar.bz2
Add blocking support for MUC 1-to-1 conversations.
Change-Id: I1cc138aecc6876609de4bdc4b22f1c98e3dd993f License: This patch is BSD-licensed, see Documentation/Licenses/BSD-simplified.txt for details.
Diffstat (limited to 'Swift/QtUI')
-rw-r--r--Swift/QtUI/QtChatWindow.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/Swift/QtUI/QtChatWindow.cpp b/Swift/QtUI/QtChatWindow.cpp
index efdab99..0857455 100644
--- a/Swift/QtUI/QtChatWindow.cpp
+++ b/Swift/QtUI/QtChatWindow.cpp
@@ -24,7 +24,6 @@
#include <Swift/Controllers/UIEvents/UIEventStream.h>
#include <Swift/Controllers/UIEvents/SendFileUIEvent.h>
#include <Swift/Controllers/UIEvents/JoinMUCUIEvent.h>
-#include <Swift/Controllers/UIEvents/RequestChangeBlockStateUIEvent.h>
#include "QtChatWindowJSBridge.h"
#include "QtUtilities.h"
@@ -985,10 +984,10 @@ void QtChatWindow::handleActionButtonClicked() {
onInvitePersonToThisMUCRequest();
}
else if (result == block) {
- eventStream_->send(boost::make_shared<RequestChangeBlockStateUIEvent>(RequestChangeBlockStateUIEvent::Blocked, JID(Q2PSTRING(contact_))));
+ onBlockUserRequest();
}
else if (result == unblock) {
- eventStream_->send(boost::make_shared<RequestChangeBlockStateUIEvent>(RequestChangeBlockStateUIEvent::Unblocked, JID(Q2PSTRING(contact_))));
+ onUnblockUserRequest();
}
}