Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3351698
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
Sun, Nov 24, 3:15 AM (17 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2573659
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