mirror of
https://github.com/FluuxIO/go-xmpp.git
synced 2025-03-28 02:19:02 -07:00
Support for XEP-203
Need to finish XEP-0082 before merge
This commit is contained in:
parent
17d561f829
commit
877a6ab949
20
stanza/delay.go
Normal file
20
stanza/delay.go
Normal file
@ -0,0 +1,20 @@
|
||||
package stanza
|
||||
|
||||
import "encoding/xml"
|
||||
|
||||
/*
|
||||
Support for:
|
||||
- XEP-0203: Delayed Delivery: https://xmpp.org/extensions/xep-0203.html
|
||||
*/
|
||||
|
||||
const NSDelay = "urn:xmpp:delay"
|
||||
|
||||
type Delay struct {
|
||||
XMLName xml.Name `xml:"urn:xmpp:delay delay"`
|
||||
From string `xml:"from,attr"`
|
||||
date JabberDate // TODO
|
||||
}
|
||||
|
||||
func init() {
|
||||
TypeRegistry.MapExtension(PKTMessage, xml.Name{Space: NSDelay, Local: "delay"}, Delay{})
|
||||
}
|
Loading…
Reference in New Issue
Block a user