robbiehanson/XMPPFramework — pull request #121 by andrewtj (2012-11-03 06:32:28+00:00)
Title: XMPPCapabilities should update c element if present

Hi Robbie,

I noticed that calling XMPPStream's resendMyPresence results in XMPPCapabilities adding multiple c elements to the presence stanza. Eg:

```

xa
-42

```

This patch makes XMPPCapabilities replace an existing element if present but otherwise append the element as before.

Cheers,
Andrew