Improve how the composer is cleared after sending a message.

This commit is contained in:
Stefan Ceriu
2026-05-22 09:19:31 +03:00
parent 1eb58a465e
commit a8cff4ded2
4 changed files with 70 additions and 26 deletions
@@ -472,6 +472,8 @@ class TimelineViewModel: TimelineViewModelType, TimelineViewModelProtocol {
state.timelineState.focussedEvent = nil
}
}
case .sentMessage:
actionsSubject.send(.composer(action: .clear))
}
}
.store(in: &cancellables)
@@ -763,8 +765,6 @@ class TimelineViewModel: TimelineViewModelType, TimelineViewModelProtocol {
guard !message.isEmpty else {
fatalError("This message should never be empty")
}
actionsSubject.send(.composer(action: .clear))
switch mode {
case .reply(let eventID, _, _):