Selaa lähdekoodia

Merge pull request #1076 from deltachat/fix_info_msg_swipe_to_reply

don't allow swipe to reply for info messages
cyBerta 4 vuotta sitten
vanhempi
commit
545d85a301
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      deltachat-ios/Chat/ChatViewController.swift

+ 1 - 1
deltachat-ios/Chat/ChatViewController.swift

@@ -527,7 +527,7 @@ class ChatViewController: UITableViewController {
 
 
 
 
     override func tableView(_ tableView: UITableView, leadingSwipeActionsConfigurationForRowAt indexPath: IndexPath) -> UISwipeActionsConfiguration? {
     override func tableView(_ tableView: UITableView, leadingSwipeActionsConfigurationForRowAt indexPath: IndexPath) -> UISwipeActionsConfiguration? {
-        if disableWriting {
+        if disableWriting || DcMsg(id: messageIds[indexPath.row]).isInfo {
             return nil
             return nil
         }
         }