summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2017-11-08 14:38:42 (GMT)
committerKevin Smith <git@kismith.co.uk>2018-03-24 15:57:22 (GMT)
commit512ead31d3df492d315ad7257536a3c15bddcf2d (patch)
tree455d4709a666483a72c28f0899a65cbe1a667c61 /Swiften
parentf2c2c7d035029fb9615b42c18ccea83e8e705b10 (diff)
downloadswift-512ead31d3df492d315ad7257536a3c15bddcf2d.zip
swift-512ead31d3df492d315ad7257536a3c15bddcf2d.tar.bz2
Allow setting full JID affiliations in MUCs
Test-Information: Equivalent change in Stroke has been tested in MLC. Change-Id: I254e974fc55e9bd99c722c79a02a3ae1ed515565
Diffstat (limited to 'Swiften')
-rw-r--r--Swiften/MUC/MUCImpl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Swiften/MUC/MUCImpl.cpp b/Swiften/MUC/MUCImpl.cpp
index 029bb4b..d2b33f3 100644
--- a/Swiften/MUC/MUCImpl.cpp
+++ b/Swiften/MUC/MUCImpl.cpp
@@ -371,7 +371,7 @@ void MUCImpl::changeAffiliation(const JID& jid, MUCOccupant::Affiliation affilia
MUCAdminPayload::ref mucPayload = std::make_shared<MUCAdminPayload>();
MUCItem item;
item.affiliation = affiliation;
- item.realJID = jid.toBare();
+ item.realJID = jid;
mucPayload->addItem(item);
std::shared_ptr<GenericRequest<MUCAdminPayload> > request = std::make_shared<GenericRequest<MUCAdminPayload> >(IQ::Set, getJID(), mucPayload, iqRouter_);
request->onResponse.connect(boost::bind(&MUCImpl::handleAffiliationChangeResponse, this, _1, _2, jid, affiliation));