Fix #5636 - Clear the composer after editing a message or caption

This commit is contained in:
Stefan Ceriu
2026-05-26 13:20:57 +03:00
parent 72002f408d
commit a89445edae
4 changed files with 13 additions and 11 deletions
@@ -79,7 +79,7 @@ class RoomPollsHistoryScreenViewModel: RoomPollsHistoryScreenViewModelType, Room
if self.state.canBackPaginate != canBackPaginate {
self.state.canBackPaginate = canBackPaginate
}
case .isLive, .sentMessage:
case .isLive, .messageSentOrEdited:
break
}
}
@@ -472,7 +472,7 @@ class TimelineViewModel: TimelineViewModelType, TimelineViewModelProtocol {
state.timelineState.focussedEvent = nil
}
}
case .sentMessage:
case .messageSentOrEdited:
actionsSubject.send(.composer(action: .clear))
}
}