Skip to content

Commit

Permalink
Change distinctUntilChanged in channelActions event emitter to allow …
Browse files Browse the repository at this point in the history
…duplicate create actions
  • Loading branch information
badkeyy committed Jan 22, 2025
1 parent dd3bda4 commit 2b98c30
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,9 @@ export class CourseConversationsComponent implements OnInit, OnDestroy {
this.channelActions$
.pipe(
debounceTime(500),
distinctUntilChanged((prev, curr) => prev.action === curr.action && prev.channel.id === curr.channel.id && prev.channel.name === curr.channel.name),
distinctUntilChanged(
(prev, curr) => prev.action === curr.action && prev.channel.id === curr.channel.id && prev.channel.name === curr.channel.name && curr.action !== 'create',
),
takeUntil(this.ngUnsubscribe),
)
.subscribe((channelAction) => {
Expand Down

0 comments on commit 2b98c30

Please sign in to comment.