mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 01:20:12 +00:00
Fixes 2070 - Prevent crashes when inserting mention pills in the composers on Mac
This commit is contained in:
committed by
Stefan Ceriu
parent
b4ec04ec26
commit
4a56796d45
@@ -143,11 +143,6 @@ class AppLockServiceMock: AppLockServiceProtocol {
|
|||||||
set(value) { underlyingBiometricUnlockTrusted = value }
|
set(value) { underlyingBiometricUnlockTrusted = value }
|
||||||
}
|
}
|
||||||
var underlyingBiometricUnlockTrusted: Bool!
|
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> {
|
var numberOfPINAttempts: AnyPublisher<Int, Never> {
|
||||||
get { return underlyingNumberOfPINAttempts }
|
get { return underlyingNumberOfPINAttempts }
|
||||||
set(value) { underlyingNumberOfPINAttempts = value }
|
set(value) { underlyingNumberOfPINAttempts = value }
|
||||||
|
|||||||
@@ -74,6 +74,19 @@ final class PillAttachmentViewProvider: NSTextAttachmentViewProvider {
|
|||||||
self.view = controller.view
|
self.view = controller.view
|
||||||
delegate?.registerPillView(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 {
|
final class ComposerMentionDisplayHelper: MentionDisplayHelper {
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
Prevent crashes when inserting mention pills in the composers on Mac
|
||||||
Reference in New Issue
Block a user