diff --git a/game-server/app/services/chatService.ts b/game-server/app/services/chatService.ts index c41b0ebad..9b8d94e94 100644 --- a/game-server/app/services/chatService.ts +++ b/game-server/app/services/chatService.ts @@ -188,7 +188,7 @@ async function recentGroupMsgs(roomId: string, count?: number) { } }) : msgs; - return result || []; + return result.filter(cur => cur) || []; } /**