Skip to content

Fetching Latest Message while fetching all threads #13

@mrudulshah

Description

@mrudulshah

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions