-
-
Notifications
You must be signed in to change notification settings - Fork 518
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
One-to-one facebook style messaging. #29
Comments
You can just create a Thread with one participant instead of many. See: |
How do I get the conversation in case of a chat? I have a list of users, I select one and start or continue a conversation so I need to create a thread if not exists. I suppose I need to get the thread knowing the participants (me and the other person) but we can participate to other threads too so I need to match that specific thread. Is there an easier way to do that or I have to do other check to get the thread with two persons that are not participating to other threads? something like: "find or create between". |
@dorin-niscu here you go: With the |
@Gummibeer Thanks. I should have studied the model :) |
How can this be performed? I have went through the methods, but still had to implement my own (i needed to users have only single thread between each other).
The text was updated successfully, but these errors were encountered: