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

#F Change priority of company name algorithm #793

Merged
merged 1 commit into from
Oct 11, 2023
Merged

Conversation

gersonnoboa
Copy link
Contributor

Before, the UiTheme took the highest priority in the algorithm to determine the company name. Now the remote company name has the highest priority, with the added constraint that it cannot be empty, as this will be the default value on the default locale. In case it is empty, the UiTheme will come afterwards, then the SDK configuration, and finally the local fallback.

MOB-2733

@gersonnoboa gersonnoboa changed the title Change priority of company name algorithm #F Change priority of company name algorithm Oct 10, 2023
Comment on lines 89 to 92
if
let remoteCompanyName = stringProviding?.getRemoteString(companyNameStringKey),
!remoteCompanyName.isEmpty
{
Copy link
Contributor

Choose a reason for hiding this comment

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

didn't see this kind of formatting in our code base, would it make sense to align with other code or provide a new codebase style?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed beb7772

@gersonnoboa
Copy link
Contributor Author

!squash

Before, the UiTheme took the highest priority in the algorithm to determine the
company name. Now the remote company name has the highest priority, with the
added constraint that it cannot be empty, as this will be the default value on
the default locale. In case it is empty, the UiTheme will come afterwards, then
the SDK configuration, and finally the local fallback.

MOB-2733
@gersonnoboa gersonnoboa merged commit a245440 into development Oct 11, 2023
1 check passed
@gersonnoboa gersonnoboa deleted the MOB-2733 branch October 11, 2023 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

5 participants