How do you change your presence to show dnd/away and etc.?

```
XMPPPresence *presence = [XMPPPresence presenceWithType:status];
[[[self appDelegate] xmppStream] sendElement:presence];

```

`status` is an `NSString` that I set to online/unavailable/away/busy/invisible.

It only works when I go online and/or unavailable.

Here's how it looks like after sending presence in my `xmppStream`:

```
<presence type="away"><x xmlns="vcard-temp:x:update"><photo/></x></presence>

```