|
@@ -15,21 +15,25 @@ final class XMPPController: NSObject {
|
|
|
let xmppReconnect: XMPPReconnect
|
|
|
let xmppRoster: XMPPRoster
|
|
|
let xmppRosterStorage: XMPPRosterMemoryStorage
|
|
|
+ let xmppMUCLight: XMPPMUCLight
|
|
|
|
|
|
var xmppAuth: XMPPPlainAuthentication
|
|
|
|
|
|
private override init() {
|
|
|
self.xmppStream = XMPPStream()
|
|
|
|
|
|
+ self.xmppReconnect = XMPPReconnect()
|
|
|
+
|
|
|
self.xmppRosterStorage = XMPPRosterMemoryStorage()
|
|
|
self.xmppRoster = XMPPRoster(rosterStorage: xmppRosterStorage)
|
|
|
|
|
|
- self.xmppReconnect = XMPPReconnect()
|
|
|
+ self.xmppMUCLight = XMPPMUCLight()
|
|
|
+
|
|
|
+ self.xmppAuth = XMPPPlainAuthentication()
|
|
|
|
|
|
self.xmppReconnect.activate(xmppStream)
|
|
|
self.xmppRoster.activate(xmppStream)
|
|
|
-
|
|
|
- self.xmppAuth = XMPPPlainAuthentication()
|
|
|
+ self.xmppMUCLight.activate(xmppStream)
|
|
|
|
|
|
super.init()
|
|
|
|