Skip to content

Commit 5310cbd

Browse files
committed
fix
1 parent 3961a4c commit 5310cbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/public/shells/chat/src/chat.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1049,7 +1049,7 @@ export async function addUserReply(chatid, object) {
10491049
unlockAchievement(chatMetadata.username, 'shells', 'chat', 'first_chat')
10501050

10511051
// photo_chat
1052-
if (object.files?.some(file => file.type.startsWith('image/')))
1052+
if (object.files?.some?.(file => file.mime_type.startsWith('image/')))
10531053
unlockAchievement(chatMetadata.username, 'shells', 'chat', 'photo_chat')
10541054

10551055
const timeSlice = chatMetadata.LastTimeSlice

0 commit comments

Comments
 (0)