Skip to content

Commit

Permalink
fixup! fixup! fix(conversations): fix password enforcement logic error
Browse files Browse the repository at this point in the history
  • Loading branch information
miaulalala committed Dec 11, 2024
1 parent b12274a commit 8e76957
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -1107,6 +1107,7 @@ public function getChangelogRoom(string $userId): Room {
* @param string $name
* @param string $objectType
* @param string $objectId
* @param string $password
* @return Room
*/
public function createRoom(int $type, string $name = '', string $objectType = '', string $objectId = '', string $password = ''): Room {
Expand Down
2 changes: 1 addition & 1 deletion tests/php/Service/RoomServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ public function testCreateConversation(int $type, string $name, string $ownerId,
->with($type, $name, $objectType, $objectId, $password)
->willReturn($room);

$this->assertSame($room, $this->service->createConversation($type, $name, $owner, $objectType, $objectId));
$this->assertSame($room, $this->service->createConversation($type, $name, $owner, $objectType, $objectId, $password));
}

public static function dataPrepareConversationName(): array {
Expand Down

0 comments on commit 8e76957

Please sign in to comment.