({
socketId,
messageId,
chatId,
addedFile,
}: {
socketId?: string;
messageId: string;
chatId: string;
addedFile: any;
})
| 454 | } |
| 455 | |
| 456 | function fileAddedInsideMessage({ |
| 457 | socketId, |
| 458 | messageId, |
| 459 | chatId, |
| 460 | addedFile, |
| 461 | }: { |
| 462 | socketId?: string; |
| 463 | messageId: string; |
| 464 | chatId: string; |
| 465 | addedFile: any; |
| 466 | }) { |
| 467 | const roomName = `chat-${chatId}`; |
| 468 | |
| 469 | const socket = getSocket(socketId); |
| 470 | if (socket) { |
| 471 | socket |
| 472 | .to(roomName) |
| 473 | .emit('messageEvent', { actionType: 'addedFileInsideMessage', messageId, addedFile }); |
| 474 | } |
| 475 | } |
| 476 | |
| 477 | function fileDeletedInsideMessage({ |
| 478 | socketId, |
no test coverage detected