Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3247479
D5834.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
948 B
Referenced Files
None
Subscribers
None
D5834.diff
View Options
diff --git a/lib/types/message-types.js b/lib/types/message-types.js
--- a/lib/types/message-types.js
+++ b/lib/types/message-types.js
@@ -399,6 +399,16 @@
+type: 'remove_all',
};
+// We were initially using `number`s` for `thread`, `type`, `future_type`, etc.
+// However, we ended up changing `thread` to `string` to account for thread IDs
+// including information about the keyserver (eg 'GENESIS|123') in the future.
+//
+// At that point we discussed whether we should switch the remaining `number`
+// fields to `string`s for consistency and flexibility. We researched whether
+// there was any performance cost to using `string`s instead of `number`s and
+// found the differences to be negligible. We also concluded using `string`s
+// may be safer after considering `jsi::Number` and the various C++ number
+// representations on the CommCoreModule side.
export type ClientDBMessageInfo = {
+id: string,
+local_id: ?string,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 16, 5:37 AM (22 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2496545
Default Alt Text
D5834.diff (948 B)
Attached To
Mode
D5834: [lib] Document why `ClientDBMessageInfo` uses strings everywhere
Attached
Detach File
Event Timeline
Log In to Comment