From f5beed76c0fa3fd2637ca1f7652c12bd2b2366b1 Mon Sep 17 00:00:00 2001 From: Khaled FERJANI Date: Thu, 2 Jun 2022 12:31:44 +0100 Subject: [PATCH] publish message only to channels --- .../services/messages/services/engine/processors/links/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twake/backend/node/src/services/messages/services/engine/processors/links/index.ts b/twake/backend/node/src/services/messages/services/engine/processors/links/index.ts index aaac74cf06..5a9c9f3bd4 100644 --- a/twake/backend/node/src/services/messages/services/engine/processors/links/index.ts +++ b/twake/backend/node/src/services/messages/services/engine/processors/links/index.ts @@ -64,7 +64,7 @@ export class MessageLinksPreviewFinishedProcessor resource: entity, }; - for (const participant of thread.participants) { + for (const participant of thread.participants.filter(p => p.type === "channel")) { publishMessageInRealtime(updatedMessage, participant); }