-
-
Notifications
You must be signed in to change notification settings - Fork 520
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
Messenger Between Scope #209
Comments
Did you mean that it returns threads where participants are: |
Exactly |
@trotsaleksandrov yeah... I've met such issue and just overrided a logic of getting the threads. You are free to extend Thread model with your own and write you own logic. Change thread model in config. I don't know is this planned behavior or not. |
That's the problem, that's it's hard to get the threads between exact users. But anyway, thanks for help :) |
You can have additional column in threads table where all participants will be stored as string: The only thing you should to remember - always store ordered ids, because if you will save value as |
But anyway @cmgmyr should look at this issue. As for me - current behavior is bugged. Or maybe there should be one more additional method: |
Cannot but agree with you. It would be great if this functionality would be reviewed |
I started to look into this yesterday but wasn't able to get far before I had to get going. I am seeing the same thing on my end and agree that it should be fixed. I'll work on it. I'm thinking that the current functionality could be useful for some. So maybe the |
Maybe it is better to split existing |
@cmgmyr To make method We can add 2 new methods. |
@a-komarev yup, that's exactly what I was thinking. I've also been thinking about rewriting the whole package to be a little more user friendly and not just a bunch of models. |
@cmgmyr Any ETA of these plans? |
@a-komarev the |
For me |
Still need help with this?? |
@AbdullahFaqeir yes, this still needs to be worked on. I haven't gotten a chance to revisit it yet. Feel free to use the WIP as a starting point or just start fresh 👍 |
@cmgmyr working on it now. |
I've submitted a PR if you can review it. |
Hello!
It appears for me, while trying to use default
betweenScope
located in Thread model, it doesn't work as expected. For example,Thread::between([1,2])
will return all the Threads where users with ids1
and2
are participating. Instead, it should return the only chat with users with these ids. Am i the one who is facing this issue? Can you provide some ideas, how to manage this?Thanks in advance!
The text was updated successfully, but these errors were encountered: