gnello / php-openfire-restapi

A complete PHP client for the Openfire REST API Plugin.
Apache License 2.0
30 stars 14 forks source link

If ChatRoom payload has non empty members array then group is not available for opening after create #12

Closed pavelsc closed 5 years ago

pavelsc commented 6 years ago

Below the only way to create a group with members:

$api->ChatRooms()->createChatRoom($payload);
$payload->setMembers($members);
$api->ChatRooms()->updateChatRoom('group_' . $e->data->id, $payload);

You cannot open chat room in a client if a room is created with members. I think if this is not a bug at least this needs clarification in API docs

gnello commented 5 years ago

Hi pavelsc, I hope to be able to update this package in the coming weeks in according to the newer version of the REST API, I'll take this into consideration.

Thanks.