FreiChat related discussions
Private Messaging

Hello,

It's more a question then problem.
I want to know, how private messaging mechanism works at freichat.

For example, I write a message for a user who is not online.
This user comes online after some time. will he get his massage?
And what column tells frei_chat table that this mail is unread?

Thanks in advance,
The best chat solution by the way + framework free : )

Hello, It's more a question then problem. I want to know, how private messaging mechanism works at freichat. For example, I write a message for a user who is not online. This user comes online after some time. will he get his massage? And what column tells frei_chat table that this mail is unread? Thanks in advance, The best chat solution by the way + framework free : )

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!

hah, nice trick they've got.

In my case that is really enought for what I want to do.
Thanks

hah, nice trick they've got. In my case that is really enought for what I want to do. Thanks
85
2
0
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft