Skip to content

Commit

Permalink
remove 'server' part from asking about message deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
r10s committed Feb 22, 2025
1 parent c7a04fa commit b1a7882
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
5 changes: 1 addition & 4 deletions deltachat-ios/Chat/ChatViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1289,10 +1289,7 @@ class ChatViewController: UITableViewController, UITableViewDropDelegate {
}

private func askToDeleteMessages(ids: [Int]) {
let chat = dcContext.getChat(chatId: chatId)
let title = chat.isDeviceTalk ?
String.localized(stringID: "ask_delete_messages_simple", parameter: ids.count) :
String.localized(stringID: "ask_delete_messages", parameter: ids.count)
let title = String.localized(stringID: "ask_delete_messages_simple", parameter: ids.count)
confirmationAlert(title: title, actionTitle: String.localized("delete"), actionStyle: .destructive,
actionHandler: { _ in
self.dcContext.deleteMessages(msgIds: ids)
Expand Down
5 changes: 1 addition & 4 deletions deltachat-ios/Controller/FilesViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,7 @@ class FilesViewController: UIViewController {
// MARK: - actions

private func askToDeleteItem(at indexPath: IndexPath) {
let chat = dcContext.getChat(chatId: chatId)
let title = chat.isDeviceTalk ?
String.localized(stringID: "ask_delete_messages_simple", parameter: 1) :
String.localized(stringID: "ask_delete_messages", parameter: 1)
let title = String.localized(stringID: "ask_delete_messages_simple", parameter: 1)
let alertController = UIAlertController(title: title, message: nil, preferredStyle: .safeActionSheet)
let okAction = UIAlertAction(title: String.localized("delete"), style: .destructive, handler: { [weak self] _ in
self?.deleteItem(at: indexPath)
Expand Down
5 changes: 1 addition & 4 deletions deltachat-ios/Controller/GalleryViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -222,10 +222,7 @@ extension GalleryViewController: UICollectionViewDataSource, UICollectionViewDel
// MARK: - Actions

private func askToDeleteItem(at indexPath: IndexPath) {
let chat = dcContext.getChat(chatId: chatId)
let title = chat.isDeviceTalk ?
String.localized(stringID: "ask_delete_messages_simple", parameter: 1) :
String.localized(stringID: "ask_delete_messages", parameter: 1)
let title = String.localized(stringID: "ask_delete_messages_simple", parameter: 1)
let alertController = UIAlertController(title: title, message: nil, preferredStyle: .safeActionSheet)
let okAction = UIAlertAction(title: String.localized("delete"), style: .destructive, handler: { [weak self] _ in
self?.deleteItem(at: indexPath)
Expand Down

0 comments on commit b1a7882

Please sign in to comment.