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 @@ -4,13 +4,15 @@ import { type ClientDBThreadInfo, type LegacyRawThreadInfo, + type RawThreadInfo, } from '../types/thread-types.js'; function convertRawThreadInfoToClientDBThreadInfo( - rawThreadInfo: LegacyRawThreadInfo, + rawThreadInfo: RawThreadInfo, ): ClientDBThreadInfo { + const { minimallyEncoded, ...rest } = rawThreadInfo; return { - ...rawThreadInfo, + ...rest, creationTime: rawThreadInfo.creationTime.toString(), members: JSON.stringify(rawThreadInfo.members), roles: JSON.stringify(rawThreadInfo.roles),