Closed SpikeLV closed 7 years ago
As a authenticated user sender and replyer is a same thing. So when you send a message its act as a sender or replyer
I understand that, but by some reason I'm getting only where I'm sender
Please give me an example...
Sent by mail
When i call Talk::getInbox() function after Talk::setAuthUserId(auth()->user()->id);
am i doing something wrong?
Yes you do something wrong, inbox mean messages thread. when you call getInbox
, it return you all message tread where you involve. If you want to get all message with your desire user, you have to call getConversationsById($conversationId)
or getConversationsByUserId($userId)
.
@samposin
ok got it, thanks @nahid
I try to use this function, but it returns only conversations where I'm a sender. Is it right?
To get all conversation ( where I'm is as sender and where I'm is a replyer) which function do I need to use?