Private messages / UserList

Everything about the SmartFoxBits UI Components for SmartFoxServer 1.x. Post your questions, suggestions and bug reports.

Moderators: Lapo, Bax

matthewlenton
Posts: 12
Joined: 20 Feb 2009, 00:51

Private messages / UserList

Postby matthewlenton » 12 Oct 2009, 05:07

Hello,

Not sure if this is an issue with UserList or the main SFS components, but here goes.

To phrase the problem in an example:

We have a situation where, if Jack sends Jill a private message, then Jill sees '1 unread message' from Jack, *but* Jack also sees '1 unread message' from Jack. Is this correct operation?

We have a custom login, where we assign a username other than evt.nick, could this be contributing to the problem? If so, how do we avoid this problem when using a custom login?
User avatar
Bax
Site Admin
Posts: 4608
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Postby Bax » 12 Oct 2009, 08:33

The reason is that whenever a user sends a message (public or private), that message is received by the sender too (this allows keeping the correct messages sequence).
I suspect you are not sending the private message through the UserList's internal chatbox. In this way, when the sender receives his own message back, the inner chatbox is not displayed and the "unread message" alert appears.
The only way to avoid this behavior is to disable private messaging in the UserList component. Of course you will need to implement your own alert system on the recipient client.
Paolo Bax
The SmartFoxServer Team
matthewlenton
Posts: 12
Joined: 20 Feb 2009, 00:51

Postby matthewlenton » 15 Oct 2009, 22:43

Hi Bax, thanks for the reply.

In brief, we are in fact using the private message interface within the UserList component.

What now? :wink:
User avatar
Bax
Site Admin
Posts: 4608
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Postby Bax » 19 Oct 2009, 07:23

mmm... this is not clear. If you are sending private messages using the UserList's internal textarea, then you shouldn't see the "1 message to read" alert. In fact this message appears if the private messaging module is not visible only, or if it is set to another user.
Can you please describe step by step how to reproduce your issue?
Paolo Bax
The SmartFoxServer Team

Return to “SmartFoxBits for SFS 1.x”

Who is online

Users browsing this forum: No registered users and 1 guest