fix: remove unecessary ws broadcast

This commit is contained in:
Mohamed Marrouchi 2024-12-19 14:46:47 +01:00
parent 84f25ecfb1
commit 28e3826e39

View File

@ -250,11 +250,6 @@ export class ChatService {
// Already existing user profile // Already existing user profile
// Exec lastvisit hook // Exec lastvisit hook
this.eventEmitter.emit('hook:user:lastvisit', subscriber); this.eventEmitter.emit('hook:user:lastvisit', subscriber);
this.websocketGateway.broadcast(
subscriber,
event.getEventType(),
event._adapter.raw,
);
} }
this.websocketGateway.broadcastSubscriberUpdate(subscriber); this.websocketGateway.broadcastSubscriberUpdate(subscriber);