fix long press snapshot of messages

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

@ -649,7 +649,7 @@ extension ConversationVC:
.elements .elements
.firstIndex(of: cellViewModel), .firstIndex(of: cellViewModel),
let cell = tableView.cellForRow(at: IndexPath(row: index, section: sectionIndex)) as? VisibleMessageCell, 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, contextMenuWindow == nil,
let actions: [ContextMenuVC.Action] = ContextMenuVC.actions( let actions: [ContextMenuVC.Action] = ContextMenuVC.actions(
for: cellViewModel, for: cellViewModel,

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

Loading…
Cancel
Save