Server message broadcast doesn't do as advertised

Description

The server message broadcast functionality advertises that, when provided with a full JID, it will broadcast the message only  if there's a session for that address.

The implementation, however, seems to broadcast the message to all users when the node-part of the provided address (which could be a remote JID) does not match an existing local user.

I don't believe this functionality is actually used. I found the issue when chasing down (which also affected this code, by performing a potentially costly, undesirable lookup of a remote JID).

Environment

None
Fixed
Your pinned fields
Click on the next to a field label to start pinning.

Assignee

Guus der Kinderen

Reporter

Guus der Kinderen