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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -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

1
changelog.d/2627.bugfix Normal file
View File

@ -0,0 +1 @@
Prevent crashes when mentioning users when running on the Mac