1
0
Fork 0
mirror of https://github.com/paricafe/misskey.git synced 2025-04-09 06:09:34 -05:00

fix(backend): 承認したチャットルームへの招待の通知が存在するとエラーになる問題を修正

This commit is contained in:
syuilo 2025-03-25 18:34:25 +09:00
parent 22f99b42f6
commit fc576ebc64

View file

@ -146,7 +146,7 @@ export class NotificationEntityService implements OnModuleInit {
}
const needsChatRoomInvitation = notification.type === 'chatRoomInvitationReceived';
const chatRoomInvitation = needsChatRoomInvitation ? await this.chatEntityService.packRoomInvitation(notification.invitationId, { id: meId }) : undefined;
const chatRoomInvitation = needsChatRoomInvitation ? await this.chatEntityService.packRoomInvitation(notification.invitationId, { id: meId }).catch(() => null) : undefined;
// if the invitation has been deleted, don't show this notification
if (needsChatRoomInvitation && !chatRoomInvitation) {
return null;