mirror of
https://github.com/pierre42100/ComunicAPI
synced 2024-11-23 22:09:29 +00:00
Upgraded method
This commit is contained in:
parent
39a08d8813
commit
e71372de60
@ -192,7 +192,13 @@ class ConversationsController{
|
|||||||
$conversationMembers = array(userID, $otherUser);
|
$conversationMembers = array(userID, $otherUser);
|
||||||
|
|
||||||
//Try to create the conversation
|
//Try to create the conversation
|
||||||
$conversationID = CS::get()->components->conversations->create($ID_owner, $follow, $conversationMembers);
|
$conv = new ConversationInfo();
|
||||||
|
$conv->set_id_owner(userID);
|
||||||
|
$conv->set_name(false);
|
||||||
|
$conv->set_following(true);
|
||||||
|
$conv->add_member(userID);
|
||||||
|
$conv->add_member($otherUser);
|
||||||
|
$conversationID = CS::get()->components->conversations->create($conv);
|
||||||
|
|
||||||
//Check for errors
|
//Check for errors
|
||||||
if($conversationID == 0)
|
if($conversationID == 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user