Skip to content

Commit

Permalink
fix: Typo in row attribute names
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <coding@schilljs.com>
  • Loading branch information
nickvergessen committed Aug 7, 2023
1 parent dd2b3ac commit 8997f3e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/Chat/ChatManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ public function sendMessage(Room $chat, ?Participant $participant, string $actor
}

// Update last_message
if ($comment->getActorType() !== 'bots' || $comment->getActorId() === 'changelog' || str_starts_with($comment->getActorId(), Attendee::ACTOR_BOT_PREFIX)) {
if ($comment->getActorType() !== Attendee::ACTOR_BOTS || $comment->getActorId() === 'changelog' || str_starts_with($comment->getActorId(), Attendee::ACTOR_BOT_PREFIX)) {
$this->roomService->setLastMessage($chat, $comment);
$this->unreadCountCache->clear($chat->getId() . '-');
} else {
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/BotConversation.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class BotConversation extends Entity implements \JsonSerializable {
public function __construct() {
$this->addType('bot_id', 'int');
$this->addType('token', 'string');
$this->addType('statue', 'int');
$this->addType('state', 'int');
}

public function jsonSerialize(): array {
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/BotServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function __construct() {
$this->addType('error_count', 'int');
$this->addType('last_error_date', 'datetime');
$this->addType('last_error_message', 'string');
$this->addType('statue', 'int');
$this->addType('state', 'int');
}

public function jsonSerialize(): array {
Expand Down

0 comments on commit 8997f3e

Please sign in to comment.