Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3156914
D10198.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
708 B
Referenced Files
None
Subscribers
None
D10198.diff
View Options
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),
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 6, 5:59 PM (20 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2431624
Default Alt Text
D10198.diff (708 B)
Attached To
Mode
D10198: [lib] Update `convertRawThreadInfoToClientDBThreadInfo` to handle `RawThreadInfo`
Attached
Detach File
Event Timeline
Log In to Comment