[ 
https://issues.apache.org/jira/browse/VYSPER-333?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13503601#comment-13503601
 ] 

wan jian ming commented on VYSPER-333:
--------------------------------------

I changed the code of  handleInboundPresenceProbe
from :
         Entity user = stanza.getTo();
to:
        List<String> resources=registry.getResourcesForSession(sessionContext);
        Entity user = new EntityImpl(stanza.getTo(),resources.get(0));


I don't know whether it is correct, but it solve my problem, any way, if one 
session binds many resource, it is not correct here, and I don't know how to 
solve it.
                
> presence message should bring the resource information of one user;
> -------------------------------------------------------------------
>
>                 Key: VYSPER-333
>                 URL: https://issues.apache.org/jira/browse/VYSPER-333
>             Project: VYSPER
>          Issue Type: Bug
>          Components: stanza routing
>    Affects Versions: 0.7
>         Environment: normal environment;
>            Reporter: wan jian ming
>
> when one on logins, he/she will get the presence information from all of its 
> rosters. but in the presence message there are no resource jid, so the client 
> don't know exactly how many logins there.
> for example A has a friend B. but before A is login. there are two logins of 
> B already. so when A got prenence message of B, it only get two B@*** , 
> without resource in the JID; so when B logout, the client of A can't show the 
> status correctly.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to