Skip to content

Commit 7aa290e

Browse files
committed
Fix location attachments should not be editable
1 parent a068e7a commit 7aa290e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

DemoApp/StreamChat/Components/DemoChatMessageActionsVC.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ final class DemoChatMessageActionsVC: ChatMessageActionsVC {
2626
actions.append(messageDebugActionItem())
2727
}
2828

29+
let hasLocationAttachments = message?.liveLocationAttachments.isEmpty == false || message?.staticLocationAttachments.isEmpty == false
30+
if hasLocationAttachments {
31+
actions.removeAll(where: { $0 is EditActionItem })
32+
}
33+
2934
return actions
3035
}
3136

0 commit comments

Comments
 (0)