this solution looks promising

This commit is contained in:
Mauro Romito
2022-11-04 04:39:22 +01:00
parent a112b008db
commit 67d363b81e
7 changed files with 33 additions and 26 deletions
@@ -75,6 +75,8 @@ typedef NS_ENUM(NSUInteger, RoomInputToolbarViewSendMode)
*/
- (void)roomInputToolbarView:(RoomInputToolbarView *)toolbarView sendAttributedTextMessage:(NSAttributedString *)attributedTextMessage;
- (void)didChangeMaximisedState: (BOOL) state;
@end
/**
@@ -111,6 +111,12 @@ class WysiwygInputToolbarView: MXKRoomInputToolbarView, NibLoadable, HtmlRoomInp
.removeDuplicates()
.sink { [weak hostingViewController] _ in
hostingViewController?.view.setNeedsLayout()
},
wysiwygViewModel.$maximised
.removeDuplicates()
.sink { [weak self] value in
self?.toolbarViewDelegate?.didChangeMaximisedState(value)
}
]