Skip to content

Commit

Permalink
Flag event dispatching fixed #15
Browse files Browse the repository at this point in the history
  • Loading branch information
Webklex committed Oct 8, 2020
1 parent b09076a commit bcb658c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,7 @@ public function setFlag($flag) {
$this->parseFlags();

$event = $this->getEvent("flag", "new");
$event::dispatch($this);
$event::dispatch($this, $flag);

return $status;
}
Expand All @@ -778,7 +778,7 @@ public function unsetFlag($flag) {
$this->parseFlags();

$event = $this->getEvent("flag", "deleted");
$event::dispatch($this);
$event::dispatch($this, $flag);

return $status;
}
Expand Down

0 comments on commit bcb658c

Please sign in to comment.