浏览代码

disable location streaming in all chats of deleted accounts

B. Petersen 4 年之前
父节点
当前提交
cb5245c7d3
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      deltachat-ios/Controller/SettingsController.swift

+ 1 - 0
deltachat-ios/Controller/SettingsController.swift

@@ -469,6 +469,7 @@ internal final class SettingsViewController: UITableViewController, ProgressAler
                     message: String.localized("forget_login_confirmation_desktop"), preferredStyle: .alert)
                 confirm2.addAction(UIAlertAction(title: String.localized("delete"), style: .destructive, handler: { [weak self] _ in
                     guard let self = self else { return }
+                    appDelegate.locationManager.disableLocationStreamingInAllChats()
                     _ = self.dcAccounts.remove(id: selectedAccountId)
                     if self.dcAccounts.getAll().isEmpty {
                         _ = self.dcAccounts.add()