mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-28 23:32:41 +00:00
Fix unarchiving of the widget manager config. (#6541)
This commit is contained in:
parent
2b4f81fb82
commit
4ca11c19ce
2 changed files with 3 additions and 0 deletions
|
@ -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]];
|
||||
}
|
||||
|
||||
|
|
1
changelog.d/6539.bugfix
Normal file
1
changelog.d/6539.bugfix
Normal file
|
@ -0,0 +1 @@
|
|||
Widgets: Fix a crash when loading the widget manager.
|
Loading…
Reference in a new issue