Improve xmpp filter branch

Allow partial matches on branch name
Not sure this `return true` is needed here. This just accidental or was it not working without it?