Skip to content
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

Fetching Latest Message while fetching all threads #13

Open
mrudulshah opened this issue May 12, 2016 · 0 comments
Open

Fetching Latest Message while fetching all threads #13

mrudulshah opened this issue May 12, 2016 · 0 comments

Comments

@mrudulshah
Copy link

mrudulshah commented May 12, 2016

Hello

the function get_full_thread accepts parameter for fetching ordered data from database.
But the GROUP BY clause does not work with ORDER BY in this case.

I was to fetch all threads of user in DESC order with one Latest Message sent to that user.
But I always get the 1st Message of the thread.

For more details check this out

https://github.com/jrmadsen67/Mahana-Messaging-library-for-CodeIgniter/blob/master/application/models/mahana_model.php#L168-L188

It does not sort records on m.cdate

Can some one help me around

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant