mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-17 23:18:27 +02:00
feat: add displayname and homeserver migration to legacy (MESSENGER-7565)
This commit is contained in:
@@ -1894,6 +1894,21 @@ NSString *const kRecentsDataSourceTapOnDirectoryServerChange = @"kRecentsDataSou
|
||||
MXSession* session = [self mxSession];
|
||||
if(!session)
|
||||
return;
|
||||
|
||||
// bwi #7565 as we have a session here and its a migration step -> use the migrationAssistant here
|
||||
|
||||
MigrationAssistant *migrationAssistant = [[MigrationAssistant alloc] init];
|
||||
|
||||
BOOL retVal = [migrationAssistant storeDisplaynameWithSession:session];
|
||||
if ( retVal == false) {
|
||||
MXLogError(@"[RecentsDataSource] shouldShowFeatureBanner could not store displaname for migration")
|
||||
}
|
||||
|
||||
retVal = [migrationAssistant storeHomeserverWithSession:session];
|
||||
if ( retVal == false) {
|
||||
MXLogError(@"[RecentsDataSource] shouldShowFeatureBanner could not store homeserver for migration")
|
||||
}
|
||||
|
||||
FeatureBannerVisibilityService *featureBannerService = [FeatureBannerVisibilityService alloc];
|
||||
[featureBannerService isUnreadWithCompletion: ^(BOOL unread) {
|
||||
if (unread) {
|
||||
|
||||
@@ -149,5 +149,7 @@
|
||||
<string>$(BASE_BUNDLE_IDENTIFIER)</string>
|
||||
<key>keychainAccessGroup</key>
|
||||
<string>$(KEYCHAIN_ACCESS_GROUP)</string>
|
||||
<key>KeychainMigrationSharedGroup</key>
|
||||
<string>$(AppIdentifierPrefix)de.bwi.messenger.shared.migration</string>
|
||||
</dict>
|
||||
</plist>
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
<key>keychain-access-groups</key>
|
||||
<array>
|
||||
<string>$(KEYCHAIN_ACCESS_GROUP)</string>
|
||||
<string>$(AppIdentifierPrefix)de.bwi.messenger.shared.migration</string>
|
||||
</array>
|
||||
</dict>
|
||||
</plist>
|
||||
|
||||
Reference in New Issue
Block a user