fix long press snapshot of messages

pull/647/head
ryanzhao 3 years ago
parent e1c5d9411d
commit 290ccdc639

@ -649,7 +649,7 @@ extension ConversationVC:
.elements
.firstIndex(of: cellViewModel),
let cell = tableView.cellForRow(at: IndexPath(row: index, section: sectionIndex)) as? VisibleMessageCell,
let snapshot = cell.bubbleView.snapshotView(afterScreenUpdates: false),
let snapshot = cell.snContentView.snapshotView(afterScreenUpdates: false),
contextMenuWindow == nil,
let actions: [ContextMenuVC.Action] = ContextMenuVC.actions(
for: cellViewModel,

@ -79,7 +79,7 @@ final class VisibleMessageCell: MessageCell, UITextViewDelegate, BodyTextViewDel
return result
}()
private lazy var snContentView: UIStackView = {
lazy var snContentView: UIStackView = {
let result = UIStackView(arrangedSubviews: [])
result.axis = .vertical
result.spacing = Values.verySmallSpacing

Loading…
Cancel
Save