Page MenuHomePhabricator

D11439.diff
No OneTemporary

D11439.diff

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

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)

Event Timeline