mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-05 20:09:04 +00:00
Use the new TimelineController message sending methods for sending locations
This commit is contained in:
committed by
Stefan Ceriu
parent
60b8b04142
commit
324a203086
@@ -1008,11 +1008,11 @@ class RoomFlowCoordinator: FlowCoordinatorProtocol {
|
|||||||
switch action {
|
switch action {
|
||||||
case .selectedLocation(let geoURI, let isUserLocation):
|
case .selectedLocation(let geoURI, let isUserLocation):
|
||||||
Task {
|
Task {
|
||||||
_ = await self.roomProxy.timeline.sendLocation(body: geoURI.bodyMessage,
|
_ = await timelineController.sendLocation(body: geoURI.bodyMessage,
|
||||||
geoURI: geoURI,
|
geoURI: geoURI,
|
||||||
description: nil,
|
description: nil,
|
||||||
zoomLevel: 15,
|
zoomLevel: 15,
|
||||||
assetType: isUserLocation ? .sender : .pin)
|
assetType: isUserLocation ? .sender : .pin)
|
||||||
self.navigationStackCoordinator.setSheetCoordinator(nil)
|
self.navigationStackCoordinator.setSheetCoordinator(nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user