In my User table the user id column is 'user_id' apart from default 'id' which is causing issue with Talk::threads() method as it is showing withUser->user_id and rest of the fields same to both the parties which is user one or the one who initiates the conversation.
the issue is fixed by changing the id field to user_id in
this applies to other methods too, like the same issue with getMessagesByUserID(), where withUser was returned with same user details who initiated the conversation.
In my User table the user id column is 'user_id' apart from default 'id' which is causing issue with Talk::threads() method as it is showing withUser->user_id and rest of the fields same to both the parties which is user one or the one who initiates the conversation. the issue is fixed by changing the id field to user_id in
threads() method
to
May be you should define a variable for that in the talk.config for people having custom field names.