Update message routing to RFC 6120

Description

Various non-conformances in message routing caused some odd behaviour where
combinations of outgoing PEP events failing to be delivered could cause
errors to be delivered to all available clients.

This fixes message routing for three cases:

  • Headline messages sent to the bare JID are now broadcast.

  • Headline emssages sent to an offline session are discarded.

  • Groupchat messages sent to a bare JID are handed to offline processing, however these should not occur.

  • Errors sent to the bare JID are discarded.

https://github.com/igniterealtime/Openfire/pull/632

Environment

None
Fixed

Assignee

Dave Cridland

Reporter

Daryl Herzmann