Revision a4bb25f6 ChatSecure/Classes/Controllers/XMPP/RoomManager.swift
| ChatSecure/Classes/Controllers/XMPP/RoomManager.swift | ||
|---|---|---|
| 45 | 45 |
return |
| 46 | 46 |
} |
| 47 | 47 |
var rooms: [OTRXMPPRoom] = [] |
| 48 |
self.databaseConnection?.asyncReadWrite({ (transaction) in
|
|
| 48 |
self.databaseConnection.asyncReadWrite({ (transaction) in
|
|
| 49 | 49 |
incomingRooms.forEach({ (room) in
|
| 50 | 50 |
// Don't overwrite existing rooms with incoming rooms |
| 51 | 51 |
if let existingRoom = OTRXMPPRoom.fetchObject(withUniqueID: room.uniqueId, transaction: transaction) {
|
Also available in: Unified diff