Skip to content

Conversation

@manuroe
Copy link
Member

@manuroe manuroe commented Jun 21, 2019

Closes #2518 .

This PR displays errors instead of trying to hide things.

3 things in the PR:

  • Make code support use of an integration manager other than modular/scalar. (It supports multi-account)
  • Display a specific error in case of unset IM server
    Simulator Screen Shot - iPhone 7 - 2019-06-21 at 15 48 47
  • Display a specific error in case of connection issue with the IM server
    Simulator Screen Shot - iPhone 7 - 2019-06-21 at 15 01 20

@manuroe manuroe requested a review from SBiOSoftWhare June 21, 2019 13:50
}
else
{
NSData *configsData = [userDefaults objectForKey:@"integrationManagerConfigs"];
Copy link
Contributor

Choose a reason for hiding this comment

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

You can use subscript expression instead of objectForKey.

NSUserDefaults *userDefaults = [MXKAppSettings standardAppSettings].sharedUserDefaults;
scalarTokens = [NSMutableDictionary dictionaryWithDictionary:[userDefaults objectForKey:@"scalarTokens"]];

NSDictionary<NSString*, NSString*> *scalarTokens = [userDefaults objectForKey:@"scalarTokens"];
Copy link
Contributor

Choose a reason for hiding this comment

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

You can use subscript expression instead of objectForKey.

@manuroe manuroe merged commit f7554aa into develop Jun 24, 2019
@manuroe manuroe deleted the riot_2518 branch June 24, 2019 13:01
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.

Make sure there are no ugly edge cases running Riot without an integrations manager

3 participants