Browse Source

don't allow swipe to reply for info messages

cyberta 4 năm trước cách đây
mục cha
commit
e6e3d9d9b8
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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? {
-        if disableWriting {
+        if disableWriting || DcMsg(id: messageIds[indexPath.row]).isInfo {
             return nil
         }