Documentation

Support

Vivox Core SDK

Vivox Core SDK

XMPP representation - Delete a message in a channel

Example request and response for an deleted message.
Read time 1 minuteLast updated 20 hours ago

Delete request
Example delete request:
<iq type='set' id='...' from='...' to='...'> <query xmlns='urn:xmpp:mam:4'> <x xmlns='jabber:x:data' type='submit'> <field var='FORM_TYPE' type='hidden'> <value>urn:xmpp:mam:4</value> </field> <field var='message-id'> <value>...</value> </field> </x> </query></iq>
Delete response
Example delete response:
<iq from="someRoomSIP@cats.vivox.com" id="..." to="alice@cats.vivox.com" type="result"> <message-deleted xmlns="urn:vivox:message-deleted" id="..." /></iq>
Deleted event
Deleted event notification is then propagated back to every participant in the channel. Example of propagating a deleted message event:
<message type=”event” from=”...” to=”...”> <event urn=”urn:vivox:message-deleted”> <delete to=”alice@cats.vivox.com” message-id=”...”> <delete-time>1656521027</delete-time> </delete> </event></message>