Prevent crashes when mentioning users on macOS (#2630)

Co-authored-by: Stefan Ceriu <stefanc@matrix.org>
This commit is contained in:
Mauro
2024-04-03 12:18:43 +02:00
committed by GitHub
parent 82527958f7
commit b4d96004fe
2 changed files with 2 additions and 1 deletions
@@ -27,7 +27,7 @@ protocol PillAttachmentViewProviderDelegate: AnyObject {
func invalidateTextAttachmentsDisplay()
}
final class PillAttachmentViewProvider: NSTextAttachmentViewProvider {
final class PillAttachmentViewProvider: NSTextAttachmentViewProvider, NSSecureCoding {
private weak var delegate: PillAttachmentViewProviderDelegate?
// MARK: - Override