MCPcopy Create free account
hub / github.com/async-labs/async / fileDeletedInsideMessage

Function fileDeletedInsideMessage

api/server/sockets.ts:477–496  ·  view source on GitHub ↗
({
  socketId,
  messageId,
  chatId,
  fileUrl,
}: {
  socketId?: string;
  messageId: string;
  chatId: string;
  fileUrl: string;
})

Source from the content-addressed store, hash-verified

475}
476
477function 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
498function unreadMessageAdded({
499 socketId,

Callers 1

team-member.tsFile · 0.90

Calls 1

getSocketFunction · 0.85

Tested by

no test coverage detected