From 941f3c7d704cbb72e92421fa1451e2b20ce53a3e Mon Sep 17 00:00:00 2001 From: tamaina Date: Tue, 21 Sep 2021 01:46:40 +0900 Subject: [PATCH 1/2] fix messaging --- etc/misskey-js.api.md | 5 ++++- src/entities.ts | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) 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 = { -- 2.34.1 From f7392469357daf7b6a5b5f2eb2d3714007fe07b8 Mon Sep 17 00:00:00 2001 From: tamaina Date: Tue, 21 Sep 2021 01:50:51 +0900 Subject: [PATCH 2/2] add changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8b13789..f1eeb49 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1 +1 @@ - +- MessagingMessageの型を修正 -- 2.34.1