|
@@ -15,8 +15,6 @@ class NewGroupController: UITableViewController, MediaPickerDelegate {
|
|
|
let isVerifiedGroup: Bool
|
|
|
let dcContext: DcContext
|
|
|
private var contactAddedObserver: NSObjectProtocol?
|
|
|
- ///TODO: remove the the line below as soon as deltachat-core 4b7b6d6cb3c26d817e3f3eeb6a20d8e8c66a4578 was released
|
|
|
- private var workaroundObserver: NSObjectProtocol?
|
|
|
|
|
|
private let sectionGroupDetails = 0
|
|
|
private let sectionGroupDetailsRowName = 0
|
|
@@ -90,34 +88,12 @@ class NewGroupController: UITableViewController, MediaPickerDelegate {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
- ///TODO: remove the the lines below as soon as deltachat-core 4b7b6d6cb3c26d817e3f3eeb6a20d8e8c66a4578 was released
|
|
|
- workaroundObserver = nc.addObserver(
|
|
|
- forName: dcNotificationChanged,
|
|
|
- object: nil,
|
|
|
- queue: nil
|
|
|
- ) { [weak self] notification in
|
|
|
- guard let self = self else { return }
|
|
|
- if let ui = notification.userInfo {
|
|
|
- if let chatId = ui["chat_id"] as? Int {
|
|
|
- if self.groupChatId == 0 || chatId != self.groupChatId {
|
|
|
- return
|
|
|
- }
|
|
|
- self.updateGroupContactIdsOnQRCodeInvite()
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
override func viewWillDisappear(_ animated: Bool) {
|
|
|
if let observer = self.contactAddedObserver {
|
|
|
NotificationCenter.default.removeObserver(observer)
|
|
|
}
|
|
|
-
|
|
|
- ///TODO: remove the the lines below as soon as deltachat-core 4b7b6d6cb3c26d817e3f3eeb6a20d8e8c66a4578 was released
|
|
|
- if let workaroundObserver = self.workaroundObserver {
|
|
|
- NotificationCenter.default.removeObserver(workaroundObserver)
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
|