Reconnect with BOSH not receive SessionResultIQ (#347)
Reconnect with BOSH not receive SessionResultIQ (#347)

When a user has presence/message on queue after reconnect, the SessionResultIQ could not be the direct response to iq. The response could be received in next messages.

This issue occurs with ejabberd 19.05

This impact BOSH due to the fact BOSH stop pulling if authenticated = false.
https://github.com/strophe/strophejs/blob/fbbac903fbf877d04a1324487ec0bc8e18f132ca/src/bosh.js#L522

Proposition : consider as authenticated until receiving SessionResultIQ.
strophe/strophejs,strophe/strophejs,strophe/strophejs