From 1ad45d21df940bbf076d89655b6d9dd10dd5b623 Mon Sep 17 00:00:00 2001 From: Frank Rotermund Date: Mon, 9 Feb 2026 14:10:49 +0100 Subject: [PATCH 1/2] feat: hotfix wysiwyg editor crashes and freezes (MESSENGER-8082) --- CHANGES_BWI.md | 9 +++++++++ Config/AppVersion.xcconfig | 2 +- Riot/Assets/new_features.html | 13 +++++++++++++ .../WysiwygInputToolbarView.swift | 8 ++++++-- project.yml | 2 +- 5 files changed, 30 insertions(+), 4 deletions(-) diff --git a/CHANGES_BWI.md b/CHANGES_BWI.md index eec6a4ed4..084c082ba 100644 --- a/CHANGES_BWI.md +++ b/CHANGES_BWI.md @@ -1,3 +1,12 @@ +Changes in BWI project 2.27.3 (2026-02-09) +=================================================== + +Improvements 🙌: +- MESSENGER-8082 Use latest version of wysiwyg editor to fix crashes on fast tipping + +Bugfix 🙌: +- MESSENGER-8116 Fix freeze caused by recursion in view height change caused by the wysiwyg editor + Changes in BWI project 2.27.0 (2025-12-09) =================================================== diff --git a/Config/AppVersion.xcconfig b/Config/AppVersion.xcconfig index 94c661017..210d4c2c8 100644 --- a/Config/AppVersion.xcconfig +++ b/Config/AppVersion.xcconfig @@ -17,5 +17,5 @@ // Version -MARKETING_VERSION = 2.26.0 +MARKETING_VERSION = 2.27.3 CURRENT_PROJECT_VERSION = 20220714163152 diff --git a/Riot/Assets/new_features.html b/Riot/Assets/new_features.html index 3a20c99b8..21ff34788 100644 --- a/Riot/Assets/new_features.html +++ b/Riot/Assets/new_features.html @@ -26,6 +26,19 @@ +
+

+ Version 2.27.3 +

+ +

+ Behobene Bugs +

+

+ +

Version 2.27.0 diff --git a/Riot/Modules/Room/Views/WYSIWYGInputToolbar/WysiwygInputToolbarView.swift b/Riot/Modules/Room/Views/WYSIWYGInputToolbar/WysiwygInputToolbarView.swift index a1e7f8256..005e9260c 100644 --- a/Riot/Modules/Room/Views/WYSIWYGInputToolbar/WysiwygInputToolbarView.swift +++ b/Riot/Modules/Room/Views/WYSIWYGInputToolbar/WysiwygInputToolbarView.swift @@ -380,8 +380,12 @@ class WysiwygInputToolbarView: MXKRoomInputToolbarView, NibLoadable, HtmlRoomInp } private func updateToolbarHeight(wysiwygHeight: CGFloat) { - self.heightConstraint.constant = wysiwygHeight - toolbarViewDelegate?.roomInputToolbarView?(self, heightDidChanged: wysiwygHeight, completion: nil) + + // bwi: #8116 fix freeze caused by rouding errors + if (wysiwygHeight - self.heightConstraint.constant).magnitude > 1 { + self.heightConstraint.constant = wysiwygHeight + toolbarViewDelegate?.roomInputToolbarView?(self, heightDidChanged: wysiwygHeight, completion: nil) + } } private func sendWysiwygMessage(content: WysiwygComposerContent) { diff --git a/project.yml b/project.yml index 675212b15..be1a146e0 100644 --- a/project.yml +++ b/project.yml @@ -67,7 +67,7 @@ packages: maxVersion: 3.5.0 WysiwygComposer: url: https://github.com/element-hq/matrix-rich-text-editor-swift - exactVersion: 2.37.12 + exactVersion: 2.41.0 DeviceKit: url: https://github.com/devicekit/DeviceKit majorVersion: 4.7.0 From 1b87d30969b5f74d43d9fe5a630a440b577c80b4 Mon Sep 17 00:00:00 2001 From: Frank Rotermund Date: Mon, 9 Feb 2026 15:08:20 +0100 Subject: [PATCH 2/2] feat: build fix new editor version (MESSENGER-8082) --- .../Service/CompletionSuggestionService.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/RiotSwiftUI/Modules/Room/CompletionSuggestion/Service/CompletionSuggestionService.swift b/RiotSwiftUI/Modules/Room/CompletionSuggestion/Service/CompletionSuggestionService.swift index c4c70337d..4cffa5310 100644 --- a/RiotSwiftUI/Modules/Room/CompletionSuggestion/Service/CompletionSuggestionService.swift +++ b/RiotSwiftUI/Modules/Room/CompletionSuggestion/Service/CompletionSuggestionService.swift @@ -127,6 +127,9 @@ class CompletionSuggestionService: CompletionSuggestionServiceProtocol { } case .custom: break + // bwi: 8082 add additional case from editor, no element app uses this, so we just break + case .colon: + break } }