({
socketId,
status,
chatId,
userId,
}: {
socketId?: string;
status: boolean;
chatId: string;
userId: string;
})
| 580 | } |
| 581 | |
| 582 | function typingStatus({ |
| 583 | socketId, |
| 584 | status, |
| 585 | chatId, |
| 586 | userId, |
| 587 | }: { |
| 588 | socketId?: string; |
| 589 | status: boolean; |
| 590 | chatId: string; |
| 591 | userId: string; |
| 592 | }) { |
| 593 | const roomName = `chat-${chatId}`; |
| 594 | |
| 595 | const socket = getSocket(socketId); |
| 596 | |
| 597 | if (socket) { |
| 598 | socket.to(roomName).emit('typingStatus', { actionType: 'edited', status, userId }); |
| 599 | } |
| 600 | } |
| 601 | |
| 602 | function teamDeleted({ |
| 603 | socketId, |
no test coverage detected