diff --git a/native/android/app/build.gradle b/native/android/app/build.gradle --- a/native/android/app/build.gradle +++ b/native/android/app/build.gradle @@ -490,8 +490,8 @@ applicationId 'app.comm.android' minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 334 - versionName '1.0.334' + versionCode 336 + versionName '1.0.336' buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString() if (isNewArchitectureEnabled()) { // We configure the CMake build only if you decide to opt-in for the New Architecture. diff --git a/native/cpp/CommonCpp/NativeModules/CommCoreModule.h b/native/cpp/CommonCpp/NativeModules/CommCoreModule.h --- a/native/cpp/CommonCpp/NativeModules/CommCoreModule.h +++ b/native/cpp/CommonCpp/NativeModules/CommCoreModule.h @@ -26,7 +26,7 @@ namespace jsi = facebook::jsi; class CommCoreModule : public facebook::react::CommCoreModuleSchemaCxxSpecJSI { - const int codeVersion{334}; + const int codeVersion{336}; std::unique_ptr cryptoThread; const std::string secureStoreAccountDataKey = "cryptoAccountDataKey"; diff --git a/native/ios/Comm.xcodeproj/project.pbxproj b/native/ios/Comm.xcodeproj/project.pbxproj --- a/native/ios/Comm.xcodeproj/project.pbxproj +++ b/native/ios/Comm.xcodeproj/project.pbxproj @@ -1666,7 +1666,7 @@ CODE_SIGN_IDENTITY = "Apple Development"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 334; + CURRENT_PROJECT_VERSION = 336; DEBUG_INFORMATION_FORMAT = dwarf; DEVELOPMENT_TEAM = H98Y8MH53M; "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = arm64; @@ -1685,7 +1685,7 @@ "@executable_path/Frameworks", "@executable_path/../../Frameworks", ); - MARKETING_VERSION = 1.0.334; + MARKETING_VERSION = 1.0.336; MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; MTL_FAST_MATH = YES; OTHER_CFLAGS = ( @@ -1725,7 +1725,7 @@ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; CODE_SIGN_STYLE = Automatic; COPY_PHASE_STRIP = NO; - CURRENT_PROJECT_VERSION = 334; + CURRENT_PROJECT_VERSION = 336; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; DEVELOPMENT_TEAM = H98Y8MH53M; "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = arm64; @@ -1740,7 +1740,7 @@ "@executable_path/Frameworks", "@executable_path/../../Frameworks", ); - MARKETING_VERSION = 1.0.334; + MARKETING_VERSION = 1.0.336; MTL_FAST_MATH = YES; ONLY_ACTIVE_ARCH = YES; OTHER_CFLAGS = ( diff --git a/native/ios/Comm/Info.debug.plist b/native/ios/Comm/Info.debug.plist --- a/native/ios/Comm/Info.debug.plist +++ b/native/ios/Comm/Info.debug.plist @@ -19,11 +19,11 @@ CFBundlePackageType APPL CFBundleShortVersionString - 1.0.334 + 1.0.336 CFBundleSignature ???? CFBundleVersion - 334 + 336 CFBundleURLTypes diff --git a/native/ios/Comm/Info.release.plist b/native/ios/Comm/Info.release.plist --- a/native/ios/Comm/Info.release.plist +++ b/native/ios/Comm/Info.release.plist @@ -19,11 +19,11 @@ CFBundlePackageType APPL CFBundleShortVersionString - 1.0.334 + 1.0.336 CFBundleSignature ???? CFBundleVersion - 334 + 336 CFBundleURLTypes diff --git a/native/redux/persist.js b/native/redux/persist.js --- a/native/redux/persist.js +++ b/native/redux/persist.js @@ -49,6 +49,7 @@ convertUserInfosToReplaceUserOps, userStoreOpsHandlers, } from 'lib/ops/user-store-ops.js'; +import { patchRawThreadInfosWithSpecialRole } from 'lib/permissions/special-roles.js'; import { filterThreadIDsInFilterList } from 'lib/reducers/calendar-filters-reducer.js'; import { highestLocalIDSelector } from 'lib/selectors/local-id-selectors.js'; import { createAsyncMigrate } from 'lib/shared/create-async-migrate.js'; @@ -111,6 +112,7 @@ import { createUpdateDBOpsForMessageStoreMessages, createUpdateDBOpsForMessageStoreThreads, + updateClientDBThreadStoreThreadInfos, } from './client-db-utils.js'; import { defaultState } from './default-state.js'; import { @@ -1279,6 +1281,12 @@ } return state; }, + [72]: (state: AppState) => + updateClientDBThreadStoreThreadInfos( + state, + patchRawThreadInfosWithSpecialRole, + handleReduxMigrationFailure, + ), }; type PersistedReportStore = $Diff< @@ -1300,7 +1308,7 @@ storage: AsyncStorage, blacklist: persistBlacklist, debug: __DEV__, - version: 71, + version: 72, transforms: [ messageStoreMessagesBlocklistTransform, reportStoreTransform,