Update ChatDetail.tsx
This commit is contained in:
@@ -268,7 +268,7 @@ export default function ChatDetail({ chatId }: { chatId: string }) {
|
||||
// Play notification sound if there are new buyer messages
|
||||
if (hasNewMessages) {
|
||||
const newMessages = response.messages.slice(messages.length);
|
||||
const hasNewBuyerMessages = newMessages.some(msg => msg.sender === 'buyer');
|
||||
const hasNewBuyerMessages = newMessages.some((msg: Message) => msg.sender === 'buyer');
|
||||
|
||||
if (hasNewBuyerMessages) {
|
||||
playNotificationSound();
|
||||
|
||||
Reference in New Issue
Block a user