diff --git a/lib/permissions/minimally-encoded-thread-permissions.test.js b/lib/permissions/minimally-encoded-thread-permissions.test.js --- a/lib/permissions/minimally-encoded-thread-permissions.test.js +++ b/lib/permissions/minimally-encoded-thread-permissions.test.js @@ -24,7 +24,7 @@ import { specialRoles } from './special-roles.js'; import { minimallyEncodeRawThreadInfo, - decodeMinimallyEncodedRawThreadInfo, + deprecatedDecodeMinimallyEncodedRawThreadInfo, minimallyEncodeThreadCurrentUserInfo, } from '../types/minimally-encoded-thread-permissions-types.js'; import type { ThreadRolePermissionsBlob } from '../types/thread-permission-types.js'; @@ -531,7 +531,7 @@ describe('decodeMinimallyEncodedRawThreadInfo', () => { it('should correctly decode minimallyEncodedRawThreadInfo', () => { expect( - decodeMinimallyEncodedRawThreadInfo( + deprecatedDecodeMinimallyEncodedRawThreadInfo( minimallyEncodeRawThreadInfo(exampleRawThreadInfoA), ), ).toStrictEqual(expectedDecodedExampleRawThreadInfoA); diff --git a/lib/shared/redux/update-roles-and-permissions.js b/lib/shared/redux/update-roles-and-permissions.js --- a/lib/shared/redux/update-roles-and-permissions.js +++ b/lib/shared/redux/update-roles-and-permissions.js @@ -2,7 +2,7 @@ import { legacyUpdateRolesAndPermissions } from './legacy-update-roles-and-permissions.js'; import { - decodeMinimallyEncodedRawThreadInfo, + deprecatedDecodeMinimallyEncodedRawThreadInfo, minimallyEncodeRawThreadInfo, type RawThreadInfo, } from '../../types/minimally-encoded-thread-permissions-types.js'; @@ -20,7 +20,7 @@ const rawThreadInfo = threadStoreInfos[threadID]; const decodedThreadInfo = - decodeMinimallyEncodedRawThreadInfo(rawThreadInfo); + deprecatedDecodeMinimallyEncodedRawThreadInfo(rawThreadInfo); decodedThreadStoreInfos[threadID] = decodedThreadInfo; } diff --git a/lib/types/minimally-encoded-thread-permissions-types.js b/lib/types/minimally-encoded-thread-permissions-types.js --- a/lib/types/minimally-encoded-thread-permissions-types.js +++ b/lib/types/minimally-encoded-thread-permissions-types.js @@ -214,7 +214,7 @@ } }; -const decodeMinimallyEncodedRawThreadInfo = ( +const deprecatedDecodeMinimallyEncodedRawThreadInfo = ( minimallyEncodedRawThreadInfo: RawThreadInfo, ): LegacyRawThreadInfo => { if (minimallyEncodedRawThreadInfo.thick) { @@ -292,5 +292,5 @@ minimallyEncodeMemberInfo, decodeMinimallyEncodedMemberInfo, minimallyEncodeRawThreadInfo, - decodeMinimallyEncodedRawThreadInfo, + deprecatedDecodeMinimallyEncodedRawThreadInfo, }; diff --git a/lib/utils/thread-ops-utils.js b/lib/utils/thread-ops-utils.js --- a/lib/utils/thread-ops-utils.js +++ b/lib/utils/thread-ops-utils.js @@ -13,7 +13,7 @@ RoleInfo, } from '../types/minimally-encoded-thread-permissions-types.js'; import { - decodeMinimallyEncodedRawThreadInfo, + deprecatedDecodeMinimallyEncodedRawThreadInfo, minimallyEncodeMemberInfo, minimallyEncodeRoleInfo, minimallyEncodeThreadCurrentUserInfo, @@ -159,7 +159,7 @@ ): LegacyRawThreadInfo { const minimallyEncoded = convertClientDBThreadInfoToRawThreadInfo(clientDBThreadInfo); - return decodeMinimallyEncodedRawThreadInfo(minimallyEncoded); + return deprecatedDecodeMinimallyEncodedRawThreadInfo(minimallyEncoded); } export {