Adds from and type attributes to the message XMPP packets.