There is a column named 'recd' in the table 'frei_chat' which checks if the message has been delivered.
But remember, FreiChat only checks if the message is delivered or not,but it does not check if the message is read or unread(there is a difference between message being delivered and a message being read)
This means, if the message is delivered, we assume that the message is read. Implementing this(message read/unread feature) is really tricky, Facebook has a solution but it is just a workaround and does not work in all cases. what facebook does is when the message is delivered, it checks if there are any mouse movements on the page, based on that it marks the message as read or unread.
we are always tempted to use a framework, but for a little modularity we don't want to sacrifice the performance gains of not using a framework.
There is a column named 'recd' in the table 'frei_chat' which checks if the message has been delivered.
But remember, FreiChat only checks if the message is delivered or not,but it does not check if the message is read or unread(there is a difference between message being delivered and a message being read)
This means, if the message is delivered, we assume that the message is read. Implementing this(message read/unread feature) is really tricky, Facebook has a solution but it is just a workaround and does not work in all cases. what facebook does is when the message is delivered, it checks if there are any mouse movements on the page, based on that it marks the message as read or unread.
we are always tempted to use a framework, but for a little modularity we don't want to sacrifice the performance gains of not using a framework.
Necessity is the mother of all inventions!