Fix adding members from circles

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2020-01-23 09:08:38 +01:00
Родитель 8f49fae760
Коммит 76709508b8
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 7076EA9751AACDDA
1 изменённых файлов: 2 добавлений и 3 удалений

Просмотреть файл

@ -502,7 +502,7 @@ class RoomController extends AEnvironmentAwareController {
$participants = [];
foreach ($circle->getMembers() as $member) {
/** @var Member $member */
if ($member->getType() === Member::TYPE_USER || $member->getUserId() === '') {
if ($member->getType() !== Member::TYPE_USER || $member->getUserId() === '') {
// Not a user?
continue;
}
@ -743,10 +743,9 @@ class RoomController extends AEnvironmentAwareController {
return new DataResponse([], Http::STATUS_NOT_FOUND);
}
$participants = [];
foreach ($circle->getMembers() as $member) {
/** @var Member $member */
if ($member->getType() === Member::TYPE_USER || $member->getUserId() === '') {
if ($member->getType() !== Member::TYPE_USER || $member->getUserId() === '') {
// Not a user?
continue;
}