tweak: “Clear all” button just delete all message request conversations instead of blocking them

This commit is contained in:
ryanzhao 2022-08-12 15:33:16 +10:00
parent db701bb0e2
commit 0ed4c7d66e
1 changed files with 0 additions and 13 deletions

View File

@ -425,19 +425,6 @@ class MessageRequestsViewController: BaseVC, UITableViewDelegate, UITableViewDat
_ = try SessionThread
.filter(ids: threadIds)
.deleteAll(db)
try threadIds.forEach { threadId in
_ = try Contact
.fetchOrCreate(db, id: threadId)
.with(
isApproved: false,
isBlocked: true
)
.saved(db)
}
// Force a config sync
try MessageSender.syncConfiguration(db, forceSyncNow: true).retainUntilComplete()
}
})
alertVC.addAction(UIAlertAction(title: "TXT_CANCEL_TITLE".localized(), style: .cancel, handler: nil))