go-xmpp/msg_receipts.go
Mickael Remond 836e723273 Refactor / extract the registry
Work in progress
2019-06-04 18:47:44 +02:00

24 lines
361 B
Go

package xmpp
import "encoding/xml"
/*
Support for:
- XEP-0184 - Message Delivery Receipts: https://xmpp.org/extensions/xep-0184.html
*/
const (
NSReceipts = "urn:xmpp:receipts"
)
// XEP-0184 message receipt markers
type Receipt struct {
MsgExtension
XMLName xml.Name
Id string
}
func init() {
typeRegistry.RegisterMsgExt(NSReceipts, Receipt{})
}