Fix typing indicators for the plain message composer

This commit is contained in:
Stefan Ceriu
2024-05-27 08:34:38 +03:00
parent 696d599773
commit 16fc7caa62
@@ -82,6 +82,14 @@ final class ComposerToolbarViewModel: ComposerToolbarViewModelType, ComposerTool
self?.actionsSubject.send(.contentChanged(isEmpty: isEmpty))
}
.store(in: &cancellables)
context.$viewState
.map(\.bindings.plainComposerText)
.removeDuplicates()
.sink { [weak self] plainComposerText in
self?.actionsSubject.send(.contentChanged(isEmpty: plainComposerText.string.isEmpty))
}
.store(in: &cancellables)
wysiwygViewModel.$actionStates
.map { actions in