浏览代码

set selectionStyle none to all cells on cell creation

cyberta 4 年之前
父节点
当前提交
ab43d4238a

+ 0 - 1
deltachat-ios/Chat/ChatViewControllerNew.swift

@@ -348,7 +348,6 @@ class ChatViewControllerNew: UITableViewController {
         cell.update(msg: message,
                     messageStyle: configureMessageStyle(for: message, at: indexPath),
                     isAvatarVisible: configureAvatarVisibility(for: message, at: indexPath))
-        cell.selectionStyle = .none
         return cell
     }
 

+ 2 - 0
deltachat-ios/Chat/Views/Cells/BaseMessageCell.swift

@@ -112,6 +112,8 @@ public class BaseMessageCell: UITableViewCell {
         trailingConstraint = contentContainer.constraintAlignTrailingMaxTo(contentView, paddingTrailing: BMC.defaultPadding)
         leadingConstraintCurrentSender = contentContainer.constraintAlignLeadingMaxTo(contentView, paddingLeading: 36)
         trailingConstraintCurrentSender = contentContainer.constraintAlignTrailingTo(contentView, paddingTrailing: BMC.defaultPadding)
+
+        selectionStyle = .none
     }
 
     // update classes inheriting BaseMessageCell first before calling super.update(...)

+ 1 - 0
deltachat-ios/Chat/Views/Cells/NewInfoMessageCell.swift

@@ -48,6 +48,7 @@ class NewInfoMessageCell: UITableViewCell {
             messageBackgroundContainer.constraintAlignBottomTo(messageLabel, paddingBottom: -6),
             messageBackgroundContainer.constraintAlignTrailingTo(messageLabel, paddingTrailing: -6)
         ])
+        selectionStyle = .none
     }
 
     func update(msg: DcMsg) {