From fa98dabeec5fed5181e653c2615ed2b589036406 Mon Sep 17 00:00:00 2001 From: tamaina Date: Tue, 21 Sep 2021 02:49:31 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20MessagingMessage=E3=81=AE=E5=9E=8B?= =?UTF-8?q?=E3=82=92=E4=BF=AE=E6=AD=A3=20(#28)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix messaging * add changelog --- CHANGELOG.md | 2 +- etc/misskey-js.api.md | 5 ++++- src/entities.ts | 5 ++++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8b13789..f1eeb49 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1 +1 @@ - +- MessagingMessageの型を修正 diff --git a/etc/misskey-js.api.md b/etc/misskey-js.api.md index 5aacf2d..362b73a 100644 --- a/etc/misskey-js.api.md +++ b/etc/misskey-js.api.md @@ -2171,7 +2171,10 @@ type MessagingMessage = { text: string | null; user: User; userId: User['id']; - groupId: string; + recipient?: User | null; + recipientId: User['id'] | null; + group?: UserGroup | null; + groupId: UserGroup['id'] | null; }; // @public (undocumented) diff --git a/src/entities.ts b/src/entities.ts index dc4ff40..87c8134 100644 --- a/src/entities.ts +++ b/src/entities.ts @@ -167,7 +167,10 @@ export type MessagingMessage = { text: string | null; user: User; userId: User['id']; - groupId: string; // TODO + recipient?: User | null; + recipientId: User['id'] | null; + group?: UserGroup | null; + groupId: UserGroup['id'] | null; }; export type CustomEmoji = {