Revision 8d76e2e3 ChatSecure/Classes/View Controllers/OTRRoomOccupantsViewController.swift
| ChatSecure/Classes/View Controllers/OTRRoomOccupantsViewController.swift | ||
|---|---|---|
| 303 | 303 |
|
| 304 | 304 |
/** Do not call this within a yap transaction! */ |
| 305 | 305 |
fileprivate func xmppRoom() -> XMPPRoom? {
|
| 306 |
var xmpp: OTRXMPPManager? = nil
|
|
| 306 |
var xmpp: XMPPManager? = nil |
|
| 307 | 307 |
self.readConnection?.read { transaction in
|
| 308 | 308 |
if let account = self.room?.account(with: transaction) {
|
| 309 |
xmpp = OTRProtocolManager.shared.protocol(for: account) as? OTRXMPPManager
|
|
| 309 |
xmpp = OTRProtocolManager.shared.protocol(for: account) as? XMPPManager |
|
| 310 | 310 |
} |
| 311 | 311 |
} |
| 312 | 312 |
guard let room = self.room, |
| ... | ... | |
| 318 | 318 |
} |
| 319 | 319 |
|
| 320 | 320 |
fileprivate func xmppRoomManager() -> OTRXMPPRoomManager? {
|
| 321 |
var xmpp: OTRXMPPManager? = nil
|
|
| 321 |
var xmpp: XMPPManager? = nil |
|
| 322 | 322 |
self.readConnection?.read { transaction in
|
| 323 | 323 |
if let account = self.room?.account(with: transaction) {
|
| 324 |
xmpp = OTRProtocolManager.shared.protocol(for: account) as? OTRXMPPManager
|
|
| 324 |
xmpp = OTRProtocolManager.shared.protocol(for: account) as? XMPPManager |
|
| 325 | 325 |
} |
| 326 | 326 |
} |
| 327 | 327 |
return xmpp?.roomManager |
Also available in: Unified diff