Okay... I figured out why... When I created the SQL table for messages, I did not set "0" as the default value for the sender_deleted and recipient_deleted field. It was setting them as NULL, but the SQL query to find the messages uses "<field> = 0" and not "<field> IS NULL", hence no messages was appearing.
Hope this will help someone in the future. On Mar 15, 3:39 pm, LostyJai <[email protected]> wrote: > Hi, > > I've just integrated your private messaging into my CE app (http:// > github.com/bborn/communityengine/commit/ > 2102708dc6a3ed83f46ecd7635474a3d75a70e71). > > After fixing a few errors, I've a portion of it to work. I am able to > send messages... however I can't view them? > > @user.sent_messages and @user.received_messages always returns 0 > messages, however @user.unread_message_count is returning the correct > number. > > Could someone please tell me what the problem is? I need to fix this > quite urgently! > > Regards, > Simon --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CommunityEngine" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/communityengine?hl=en -~----------~----~----~----~------~----~------~--~---
