mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 10:33:45 +00:00
Forward current composer text to the new poll form to serve as the question/topic
This commit is contained in:
@@ -134,8 +134,10 @@ final class RoomScreenCoordinator: CoordinatorProtocol {
|
||||
roomViewModel.displayMediaPreview(mediaPreviewViewModel)
|
||||
case .displayLocationPicker:
|
||||
actionsSubject.send(.presentLocationPicker)
|
||||
case .displayPollForm(let mode):
|
||||
actionsSubject.send(.presentPollForm(mode: mode))
|
||||
case .displayNewPollForm:
|
||||
actionsSubject.send(.presentPollForm(mode: .new(topic: composerViewModel.context.plainComposerText.string)))
|
||||
case .displayEditPollForm(let eventID, let poll):
|
||||
actionsSubject.send(.presentPollForm(mode: .edit(eventID: eventID, poll: poll)))
|
||||
case .displayMediaUploadPreviewScreen(let mediaURLs):
|
||||
actionsSubject.send(.presentMediaUploadPreviewScreen(mediaURLs: mediaURLs,
|
||||
caption: composerViewModel.context.plainComposerText))
|
||||
|
||||
Reference in New Issue
Block a user