Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include app name in default session display name #227

Merged
merged 3 commits into from
Oct 14, 2022

Conversation

Johennes
Copy link
Contributor

@Johennes Johennes commented Oct 7, 2022

This ports element-hq/element-ios#6828 over to ElementX. Please see the Element iOS PR for the reasoning.

@github-actions
Copy link

github-actions bot commented Oct 7, 2022

Warnings
⚠️ Some of the commits are missing ticket numbers. Please consinder using them for better tracking.
⚠️ You seem to have made changes to views. Please consider adding screenshots.

Generated by 🚫 Danger Swift against 90cbf9a

@github-actions
Copy link

github-actions bot commented Oct 7, 2022

📱 Scan the QR code below to install the build for this PR.
🔒 This build is for internal testing purpose. Only devices listed in the ad-hoc provisioning profile can install Element Alpha.

QR code

If you can't scan the QR code you can install the build via this link: https://i.diawi.com/wZJwbS

@pixlwave pixlwave requested review from a team and pixlwave and removed request for a team October 7, 2022 22:14
@Johennes
Copy link
Contributor Author

Hm, testVerificationCancellation keeps failing but it also fails on develop so I don't think this is related to my changes.

Copy link
Member

@pixlwave pixlwave left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, although we're currently using cfBundleName everywhere else and the cfBundleDisplayName has the same value, so I'm wondering if it adds anything using that?

@Johennes
Copy link
Contributor Author

I'm not sure to be honest. I just copied this over from Element-iOS. Happy to change to cfBundleName if that seems more appropriate.

@Johennes
Copy link
Contributor Author

Ah, reading up in the docs it seems there is a slight difference:

CFBundleName: A user-visible short name for the bundle.

This name can contain up to 15 characters. The system may display it to users if CFBundleDisplayName isn't set.

CFBundleDisplayName: The user-visible name for the bundle, used by Siri and visible on the iOS Home screen.

Use this key if you want a product name that's longer than CFBundleName.

So I think CFBundleDisplayName might be better to use actually because it allows for longer app names.

@pixlwave
Copy link
Member

Yep you're right, that makes sense to me. Would you mind updating any other uses of ElementInfoPlist.cfBundleName to be ElementInfoPlist.cfBundleDisplayName for consistency?

@Johennes
Copy link
Contributor Author

Ah, good idea, yes. Have replaced all the usages now.

@pixlwave
Copy link
Member

Thanks 🙏

@pixlwave pixlwave enabled auto-merge (squash) October 14, 2022 08:59
@stefanceriu stefanceriu enabled auto-merge (rebase) October 14, 2022 09:11
@pixlwave pixlwave enabled auto-merge (squash) October 14, 2022 09:14
@sonarcloud
Copy link

sonarcloud bot commented Oct 14, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@pixlwave pixlwave merged commit 342d25f into develop Oct 14, 2022
@pixlwave pixlwave deleted the johannes/session-display-name branch October 14, 2022 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants