summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2010-12-05 13:40:48 (GMT)
committerKevin Smith <git@kismith.co.uk>2010-12-05 13:42:56 (GMT)
commitec923326d40708e2ef639bf191126ecb197c4c30 (patch)
treed4093c8f75504958a429d611695fdb9a9d61a5b2
parent6ba6af2934095f54f51d17c1d9ed8216b6249aa3 (diff)
downloadswift-ec923326d40708e2ef639bf191126ecb197c4c30.zip
swift-ec923326d40708e2ef639bf191126ecb197c4c30.tar.bz2
Don't mess up avatars after a MUC reconnect.
Resolves: #702
-rw-r--r--Swiften/MUC/MUC.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Swiften/MUC/MUC.cpp b/Swiften/MUC/MUC.cpp
index 4185fa8..dd57698 100644
--- a/Swiften/MUC/MUC.cpp
+++ b/Swiften/MUC/MUC.cpp
@@ -25,7 +25,6 @@ typedef std::pair<String, MUCOccupant> StringMUCOccupantPair;
MUC::MUC(StanzaChannel* stanzaChannel, IQRouter* iqRouter, DirectedPresenceSender* presenceSender, const JID &muc, MUCRegistry* mucRegistry) : ownMUCJID(muc), stanzaChannel(stanzaChannel), iqRouter_(iqRouter), presenceSender(presenceSender), mucRegistry(mucRegistry) {
scopedConnection_ = stanzaChannel->onPresenceReceived.connect(boost::bind(&MUC::handleIncomingPresence, this, _1));
- mucRegistry->addMUC(getJID());
}
//FIXME: discover reserved nickname
@@ -41,6 +40,7 @@ void MUC::joinAs(const String &nick) {
void MUC::internalJoin(const String &nick) {
//TODO: password
//TODO: history request
+ mucRegistry->addMUC(getJID());
joinComplete_ = false;
ownMUCJID = JID(ownMUCJID.getNode(), ownMUCJID.getDomain(), nick);
boost::shared_ptr<Presence> joinPresence(presenceSender->getLastSentUndirectedPresence());