Skip to content

Commit 5e5a9ab

Browse files
committed
Minor cleanup
1 parent 2f4a35a commit 5e5a9ab

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

DemoApp/StreamChat/Components/CustomAttachments/DemoComposerVC.swift

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

16-
let alreadyHasLocation = content.attachments.map(\.type).contains(.staticLocation)
17-
if AppConfig.shared.demoAppConfig.isLocationAttachmentsEnabled && !alreadyHasLocation {
16+
if AppConfig.shared.demoAppConfig.isLocationAttachmentsEnabled {
1817
let sendLocationAction = UIAlertAction(
1918
title: "Send Current Location",
2019
style: .default,

DemoApp/StreamChat/Components/CustomAttachments/LocationAttachment/LocationAttachmentSnapshotView.swift

-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ class LocationAttachmentSnapshotView: _View, ThemeProvider {
131131
activityIndicatorView.centerXAnchor.constraint(equalTo: centerXAnchor),
132132
activityIndicatorView.centerYAnchor.constraint(equalTo: centerYAnchor),
133133
imageView.widthAnchor.constraint(equalTo: container.widthAnchor),
134-
135134
avatarView.centerXAnchor.constraint(equalTo: imageView.centerXAnchor),
136135
avatarView.centerYAnchor.constraint(equalTo: imageView.centerYAnchor),
137136
avatarView.widthAnchor.constraint(equalToConstant: 30),

0 commit comments

Comments
 (0)