mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Allow sending locations within threads
This patch implements support for sending locations within threads by following a similar behavior to the other screens: pass the thread root between the various state machine states until the action is finally invoked.
This commit is contained in:
committed by
Stefan Ceriu
parent
3c441f47c9
commit
f66d654820
@@ -49,7 +49,7 @@ struct RoomAttachmentPicker: View {
|
||||
.accessibilityIdentifier(A11yIdentifiers.roomScreen.attachmentPickerPoll)
|
||||
}
|
||||
|
||||
if !context.viewState.isInThread, context.viewState.isLocationSharingEnabled {
|
||||
if context.viewState.isLocationSharingEnabled {
|
||||
Button {
|
||||
context.send(viewAction: .attach(.location))
|
||||
} label: {
|
||||
|
||||
Reference in New Issue
Block a user