Skip to content

Releases: musonza/chat

v3.2.4

06 Mar 18:20
25f12ed
Compare
Choose a tag to compare
Update composer.json

v3.2.3

02 Mar 04:31
03ac9e2
Compare
Choose a tag to compare
add ChatFacade to extra (#126)

v3.2.2

23 Jan 01:53
Compare
Choose a tag to compare
Added an extra orderBy in getConversationsList (#124)

* Added an extra orderBy in getConversationsList

Basically, this means: Order by `'mc_conversations.updated_at' desc` but whenever there are duplicated values for update_at then order those values by `'mc_conversations.id' desc.

v3.2.1

19 Jan 02:12
Compare
Choose a tag to compare

#121

Creating a conversation of type private / public

$participants = [$userId, $userId2,...];

// Create a private conversation
$conversation = Chat::createConversation($participants)->makePrivate();

// Create a public conversation
$conversation = Chat::createConversation($participants)->makePrivate(false);

Get user conversations by type

// private conversations
$conversations = Chat::conversations()->for($user)->isPrivate()->get();

// public conversations
$conversations = Chat::conversations()->for($user)->isPrivate(false)->get();

// all conversations
$conversations = Chat::conversations()->for($user)->get();

v3.2.0

18 Jan 14:35
Compare
Choose a tag to compare

v3.1.2

07 Jan 17:24
Compare
Choose a tag to compare
Change order of dropping tables

php artisan migrate:refresh returns error due to mc_conversations foreign key.

v3.1.1

14 Dec 19:26
6e3e175
Compare
Choose a tag to compare
Update README.md

v3.1.0

14 Dec 03:51
6e3e175
Compare
Choose a tag to compare
Update README.md

v3.0.4

11 Nov 23:42
Compare
Choose a tag to compare
specify foreign pivot key (#112)

* specify foreign pivot key

if the user model is different from the default user model that time it generating the custom table id column but this is should always user_id

* Update Conversation.php

v3.0.3

11 Sep 17:25
Compare
Choose a tag to compare
Update ConversationService.php (#102)

Added $data array to 'start' method arguments.