({
socketId,
commentId,
discussionId,
addedFile,
}: {
socketId?: string;
commentId: string;
discussionId: string;
addedFile: any;
})
| 250 | } |
| 251 | |
| 252 | function fileAddedInsideComment({ |
| 253 | socketId, |
| 254 | commentId, |
| 255 | discussionId, |
| 256 | addedFile, |
| 257 | }: { |
| 258 | socketId?: string; |
| 259 | commentId: string; |
| 260 | discussionId: string; |
| 261 | addedFile: any; |
| 262 | }) { |
| 263 | const roomName = `discussion-${discussionId}`; |
| 264 | |
| 265 | const socket = getSocket(socketId); |
| 266 | if (socket) { |
| 267 | socket |
| 268 | .to(roomName) |
| 269 | .emit('commentEvent', { actionType: 'addedFileInsideComment', commentId, addedFile }); |
| 270 | } |
| 271 | } |
| 272 | |
| 273 | function fileDeletedInsideComment({ |
| 274 | socketId, |
no test coverage detected