mirror of
https://github.com/element-hq/element-x-ios.git
synced 2025-03-10 21:39:12 +00:00
Fix a bug when dismissing a media preview. (#1428)
This commit is contained in:
parent
e39b7eb6c6
commit
f06e063f03
@ -256,6 +256,7 @@ class RoomScreenViewModel: RoomScreenViewModelType, RoomScreenViewModelProtocol
|
||||
|
||||
switch action {
|
||||
case .displayMediaFile(let file, let title):
|
||||
state.bindings.composerFocused = false // Hide the keyboard otherwise a big white space is sometimes shown when dismissing the preview.
|
||||
state.bindings.mediaPreviewItem = MediaPreviewItem(file: file, title: title)
|
||||
case .displayLocation(let body, let geoURI, let description):
|
||||
callback?(.displayLocation(body: body, geoURI: geoURI, description: description))
|
||||
|
1
changelog.d/pr-1428.bugfix
Normal file
1
changelog.d/pr-1428.bugfix
Normal file
@ -0,0 +1 @@
|
||||
Fix a bug where media previews would sometimes dismiss to show the timeline with a big empty space at the bottom.
|
Loading…
x
Reference in New Issue
Block a user