From b4d96004fe40718346d39c047c3654f359a7d1aa Mon Sep 17 00:00:00 2001 From: Mauro <34335419+Velin92@users.noreply.github.com> Date: Wed, 3 Apr 2024 12:18:43 +0200 Subject: [PATCH] Prevent crashes when mentioning users on macOS (#2630) Co-authored-by: Stefan Ceriu --- ElementX/Sources/Other/Pills/PillAttachmentViewProvider.swift | 2 +- changelog.d/2627.bugfix | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changelog.d/2627.bugfix diff --git a/ElementX/Sources/Other/Pills/PillAttachmentViewProvider.swift b/ElementX/Sources/Other/Pills/PillAttachmentViewProvider.swift index afa95ac008..0959e9607d 100644 --- a/ElementX/Sources/Other/Pills/PillAttachmentViewProvider.swift +++ b/ElementX/Sources/Other/Pills/PillAttachmentViewProvider.swift @@ -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 diff --git a/changelog.d/2627.bugfix b/changelog.d/2627.bugfix new file mode 100644 index 0000000000..3a5284164f --- /dev/null +++ b/changelog.d/2627.bugfix @@ -0,0 +1 @@ +Prevent crashes when mentioning users when running on the Mac \ No newline at end of file