Thanks for the patch, but unfortunately it will not apply cleanly, possibly because the indentation has been replaced by spaces.
Hm, determining if you are still online can be done with a XEP-0199 ping, and re-synchronizing presence can be done by sending another join stanza. Is this really needed?
> Is this really needed?
For my particular use-case, yes, and my use-case is very similar to the example given in XEP-0045.
In my use-case the MUC presence stanzas aren't being sent (except for mods), but when I receive a message I need XEP-0317 hats information for the message author, so I want to send out a probe for that.
BTW, the above patch is rubbish and doesn't work.
Here's a better one (should now be with tabs, it's a Github gist setting):