mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-19 16:13:42 +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) {
|
||||
|
||||
Reference in New Issue
Block a user