Here is the code. As a result, I want to see my conversation and a conversation with a friend. For conversation history functionality How to do this?
SELECT message_id, thread_id, author_id, body, created_time, viewer_id FROM message WHERE thread_id IN (SELECT thread_id, subject, recipients FROM thread WHERE folder_id =0 ) AND author_id = 'xxxxxxxxxxxxxxx' ORDER BY created_time DESC LIMIT 0,25
This code only returns my friendβs data.
source share