Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3353333
D11439.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D11439.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
@@ -136,6 +136,12 @@
rawUnsupportedMessageInfoValidator,
type UnsupportedMessageInfo,
} from './messages/unsupported.js';
+import type {
+ RawUpdateRelationshipMessageInfo,
+ UpdateRelationshipMessageData,
+ UpdateRelationshipMessageInfo,
+} from './messages/update-relationship.js';
+import { rawUpdateRelationshipMessageInfoValidator } from './messages/update-relationship.js';
import { type RelativeUserInfo, type UserInfos } from './user-types.js';
import type { CallSingleKeyserverEndpointResultInfoInterface } from '../utils/call-single-keyserver-endpoint.js';
import { values } from '../utils/objects.js';
@@ -217,7 +223,8 @@
| RawMediaMessageInfo
| RawLegacyUpdateRelationshipMessageInfo
| RawCreateSidebarMessageInfo
- | RawUnsupportedMessageInfo;
+ | RawUnsupportedMessageInfo
+ | RawUpdateRelationshipMessageInfo;
export type SidebarSourceMessageData = {
+type: 17,
@@ -248,7 +255,8 @@
| CreateSidebarMessageData
| ReactionMessageData
| EditMessageData
- | TogglePinMessageData;
+ | TogglePinMessageData
+ | UpdateRelationshipMessageData;
export type MultimediaMessageData = ImagesMessageData | MediaMessageData;
@@ -282,7 +290,8 @@
| RawLegacyUpdateRelationshipMessageInfo
| RawCreateSidebarMessageInfo
| RawUnsupportedMessageInfo
- | RawTogglePinMessageInfo;
+ | RawTogglePinMessageInfo
+ | RawUpdateRelationshipMessageInfo;
const rawRobotextMessageInfoValidator = t.union([
rawCreateThreadMessageInfoValidator,
rawAddMembersMessageInfoValidator,
@@ -300,6 +309,7 @@
rawCreateSidebarMessageInfoValidator,
rawUnsupportedMessageInfoValidator,
rawTogglePinMessageInfoValidator,
+ rawUpdateRelationshipMessageInfoValidator,
]);
export type RawSidebarSourceMessageInfo = {
@@ -372,7 +382,8 @@
| UnsupportedMessageInfo
| LegacyUpdateRelationshipMessageInfo
| CreateSidebarMessageInfo
- | TogglePinMessageInfo;
+ | TogglePinMessageInfo
+ | UpdateRelationshipMessageInfo;
export type PreviewableMessageInfo =
| RobotextMessageInfo
| MultimediaMessageInfo
@@ -396,7 +407,8 @@
| MediaMessageInfo
| LegacyUpdateRelationshipMessageInfo
| CreateSidebarMessageInfo
- | UnsupportedMessageInfo;
+ | UnsupportedMessageInfo
+ | UpdateRelationshipMessageInfo;
export type SidebarSourceMessageInfo = {
+type: 17,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 24, 9:25 AM (16 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2574823
Default Alt Text
D11439.diff (2 KB)
Attached To
Mode
D11439: [lib] Update union types in `message-types` to include `UpdateRelationship` types
Attached
Detach File
Event Timeline
Log In to Comment