Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3377155
D11439.id38450.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.id38450.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
Thu, Nov 28, 4:09 AM (20 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2592713
Default Alt Text
D11439.id38450.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