Skip to content

Commit

Permalink
Minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
nuno-vieira committed Jan 3, 2025
1 parent 2f4a35a commit 5e5a9ab
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ class DemoComposerVC: ComposerVC {
override var attachmentsPickerActions: [UIAlertAction] {
var actions = super.attachmentsPickerActions

let alreadyHasLocation = content.attachments.map(\.type).contains(.staticLocation)
if AppConfig.shared.demoAppConfig.isLocationAttachmentsEnabled && !alreadyHasLocation {
if AppConfig.shared.demoAppConfig.isLocationAttachmentsEnabled {
let sendLocationAction = UIAlertAction(
title: "Send Current Location",
style: .default,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ class LocationAttachmentSnapshotView: _View, ThemeProvider {
activityIndicatorView.centerXAnchor.constraint(equalTo: centerXAnchor),
activityIndicatorView.centerYAnchor.constraint(equalTo: centerYAnchor),
imageView.widthAnchor.constraint(equalTo: container.widthAnchor),

avatarView.centerXAnchor.constraint(equalTo: imageView.centerXAnchor),
avatarView.centerYAnchor.constraint(equalTo: imageView.centerYAnchor),
avatarView.widthAnchor.constraint(equalToConstant: 30),
Expand Down

0 comments on commit 5e5a9ab

Please sign in to comment.