mirror of
https://github.com/paricafe/misskey.git
synced 2025-04-09 06:09:34 -05:00
fix(backend): 承認したチャットルームへの招待の通知が存在するとエラーになる問題を修正
This commit is contained in:
parent
22f99b42f6
commit
fc576ebc64
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue