Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update of channel message send twice when we dont use IsNotEdited Filter #1530

Open
mtalaeii opened this issue Jul 12, 2024 · 0 comments
Open

Comments

@mtalaeii
Copy link
Contributor

mtalaeii commented Jul 12, 2024

Description

This is serious problem that couse when we have disscussion group with connected to channel

Reproduce

use the code below

#[Handler]
public function commentHandler(ChannelMessage $message)
{
    $message->getDiscussion()->reply("hello");
}

This will send hello twice on disscusion group even if the post is not edited on channel!!!

Simple Fix

#[Handler]
public function commentHandler(ChannelMessage&IsNotEdited $message)
{
    $message->getDiscussion()->reply("hello");
}

As i say this is not a real fix because the post in channel not edited and not have any reaction and it send hello just 1 in this case

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant