Просмотр исходного кода

don't allow swipe to reply for info messages

cyberta 4 лет назад
Родитель
Сommit
e6e3d9d9b8
1 измененных файлов с 1 добавлено и 1 удалено
  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
         }