mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-22 01:22:46 +02:00
Fix unarchiving of the widget manager config. (#6541)
This commit is contained in:
@@ -779,6 +779,8 @@ NSString *const WidgetManagerErrorDomain = @"WidgetManagerErrorDomain";
|
||||
NSData *configsData = [userDefaults objectForKey:@"integrationManagerConfigs"];
|
||||
if (configsData)
|
||||
{
|
||||
// We need to map the config class name since the bundle name was updated otherwise unarchiving crashes.
|
||||
[NSKeyedUnarchiver setClass:WidgetManagerConfig.class forClassName:@"Riot.WidgetManagerConfig"];
|
||||
configs = [NSMutableDictionary dictionaryWithDictionary:[NSKeyedUnarchiver unarchiveObjectWithData:configsData]];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user