({
socketId,
messageId,
chatId,
fileUrl,
}: {
socketId?: string;
messageId: string;
chatId: string;
fileUrl: string;
})
| 475 | } |
| 476 | |
| 477 | function fileDeletedInsideMessage({ |
| 478 | socketId, |
| 479 | messageId, |
| 480 | chatId, |
| 481 | fileUrl, |
| 482 | }: { |
| 483 | socketId?: string; |
| 484 | messageId: string; |
| 485 | chatId: string; |
| 486 | fileUrl: string; |
| 487 | }) { |
| 488 | const roomName = `chat-${chatId}`; |
| 489 | |
| 490 | const socket = getSocket(socketId); |
| 491 | if (socket) { |
| 492 | socket |
| 493 | .to(roomName) |
| 494 | .emit('messageEvent', { actionType: 'deletedFileInsideMessage', messageId, fileUrl }); |
| 495 | } |
| 496 | } |
| 497 | |
| 498 | function unreadMessageAdded({ |
| 499 | socketId, |
no test coverage detected