Skip to content

Commit

Permalink
publish message only to channels
Browse files Browse the repository at this point in the history
  • Loading branch information
rezk2ll committed Jun 2, 2022
1 parent d9596d1 commit f5beed7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit f5beed7

Please sign in to comment.