• Christian Schudt's avatar
    Fix XEP-0012 logic. · 1fbab5fe
    Christian Schudt authored
    If a query has no 'to' attribute it should be treated on behalf of the sender.
    It should not be treated as if it were targeted to the server (and return the server uptime).
    
    The former logic also threw an UserNotFoundException, if the user queried itself, because the user was not on his own roster.
     I've fixed that in the canProbePresence method.
    
     Fixes issue OF-982
    1fbab5fe