mirror of
https://github.com/element-hq/element-x-ios.git
synced 2025-03-10 21:39:12 +00:00
Fixes 2070 - Prevent crashes when inserting mention pills in the composers on Mac
This commit is contained in:
parent
b4ec04ec26
commit
4a56796d45
@ -143,11 +143,6 @@ class AppLockServiceMock: AppLockServiceProtocol {
|
||||
set(value) { underlyingBiometricUnlockTrusted = value }
|
||||
}
|
||||
var underlyingBiometricUnlockTrusted: Bool!
|
||||
var disabledPublisher: AnyPublisher<Void, Never> {
|
||||
get { return underlyingDisabledPublisher }
|
||||
set(value) { underlyingDisabledPublisher = value }
|
||||
}
|
||||
var underlyingDisabledPublisher: AnyPublisher<Void, Never>!
|
||||
var numberOfPINAttempts: AnyPublisher<Int, Never> {
|
||||
get { return underlyingNumberOfPINAttempts }
|
||||
set(value) { underlyingNumberOfPINAttempts = value }
|
||||
|
@ -74,6 +74,19 @@ final class PillAttachmentViewProvider: NSTextAttachmentViewProvider {
|
||||
self.view = controller.view
|
||||
delegate?.registerPillView(controller.view)
|
||||
}
|
||||
|
||||
// MARK: - NSSecureCoding
|
||||
|
||||
// Fixes crashes when inserting mention pills in the composer on Mac
|
||||
// https://github.com/vector-im/element-x-ios/issues/2070
|
||||
|
||||
static var supportsSecureCoding = false
|
||||
|
||||
func encode(with coder: NSCoder) { }
|
||||
|
||||
init?(coder: NSCoder) {
|
||||
fatalError("Not implemented")
|
||||
}
|
||||
}
|
||||
|
||||
final class ComposerMentionDisplayHelper: MentionDisplayHelper {
|
||||
|
1
changelog.d/2070.bugfix
Normal file
1
changelog.d/2070.bugfix
Normal file
@ -0,0 +1 @@
|
||||
Prevent crashes when inserting mention pills in the composers on Mac
|
Loading…
x
Reference in New Issue
Block a user