Skip to content

Commit 2b0793f

Browse files
committed
Do not show location attachment picker when inside thread
1 parent 7aa290e commit 2b0793f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DemoApp/StreamChat/Components/CustomAttachments/DemoComposerVC.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class DemoComposerVC: ComposerVC {
1313
override var attachmentsPickerActions: [UIAlertAction] {
1414
var actions = super.attachmentsPickerActions
1515

16-
if AppConfig.shared.demoAppConfig.isLocationAttachmentsEnabled {
16+
if AppConfig.shared.demoAppConfig.isLocationAttachmentsEnabled && content.isInsideThread == false {
1717
let sendLocationAction = UIAlertAction(
1818
title: "Send Current Location",
1919
style: .default,

0 commit comments

Comments
 (0)