XEP-0184 <received/> element id attribute is ignored
Bug description
When a <received/> element is seen in a message, the message's own id, rather than the message id referred to in the receipt itself, is used to identify the message.
Steps to reproduce
Quite hard to do, without access to a military XMPP client that's not generally available...
Patch attached cures the problem.