From 567309aa9bcfe97db08964861bf7732ee7f11cbf Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 19 May 2019 20:52:00 +0900 Subject: [PATCH] Fix #4948 --- src/models/repositories/messaging-message.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/repositories/messaging-message.ts b/src/models/repositories/messaging-message.ts index a64ed0732..6db2f4fa7 100644 --- a/src/models/repositories/messaging-message.ts +++ b/src/models/repositories/messaging-message.ts @@ -35,7 +35,7 @@ export class MessagingMessageRepository extends Repository { user: await Users.pack(message.user || message.userId, me), recipientId: message.recipientId, recipient: message.recipientId && opts.populateRecipient ? await Users.pack(message.recipient || message.recipientId, me) : undefined, - groupId: message.recipientId, + groupId: message.groupId, group: message.groupId && opts.populateGroup ? await UserGroups.pack(message.group || message.groupId) : undefined, fileId: message.fileId, file: message.fileId ? await DriveFiles.pack(message.fileId) : null,