jrmadsen67 / Mahana-Messaging-library-for-CodeIgniter

A small library to help jump start your internal messaging system, for the CodeIgniter framework
59 stars 30 forks source link

any retrieval of a message does not match the correct message status found in DB. #6

Closed kirushanths closed 11 years ago

kirushanths commented 11 years ago

I am having a huge issue, where get_all_threads, get_all_threads_grouped, get_message all return messages that have a MSG_STATUS_READ in the DB (I manually checked on the command line) as a MSG_STATUS_UNREAD.

And it is specifically only messages that terminate a thread (meaning the last message sent in a thread) even if user BOB sent the message, mahana still returns MSG_STATUS_UNREAD for BOB's user_id

I have checked over the code, and I can't seem to figure out why. I'm Stumped.

kirushanths commented 11 years ago

A simple mistake on my part. No issue here.