fix: subject typo for room events

fix #84
pull/91/head
sualko 2020-09-28 14:59:05 +02:00
parent b4b7eeacad
commit a86554ca46
1 changed files with 2 additions and 2 deletions

View File

@ -20,9 +20,9 @@ class RoomListener implements IEventListener {
public function handle(Event $event): void { public function handle(Event $event): void {
if ($event instanceof RoomCreatedEvent) { if ($event instanceof RoomCreatedEvent) {
$subject = Provider::SHARE_CREATED; $subject = Provider::ROOM_CREATED;
} elseif ($event instanceof RoomDeletedEvent) { } elseif ($event instanceof RoomDeletedEvent) {
$subject = Provider::SHARE_DELETED; $subject = Provider::ROOM_DELETED;
} else { } else {
return; return;
} }