mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Fix #5636 - Clear the composer after editing a message or caption
This commit is contained in:
+1
-1
@@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user