sum7
/
yaja
Archived
1
0
Fork 0

add html support for messages

This commit is contained in:
Martin/Geno 2019-06-21 02:51:43 +02:00
parent c886269ff0
commit 2454a3b2d6
No known key found for this signature in database
GPG Key ID: 9D7D3C6BFF600C6A
1 changed files with 10 additions and 0 deletions

View File

@ -17,6 +17,7 @@ type MessageClient struct {
Subject string `xml:"subject,omitempty"`
Body string `xml:"body,omitempty"`
HTML *HTML
Thread string `xml:"thread,omitempty"`
Error *ErrorClient
@ -25,3 +26,12 @@ type MessageClient struct {
// Any hasn't matched element
Other []XMLElement `xml:",any"`
}
type HTML struct {
XMLName xml.Name `xml:"http://jabber.org/protocol/xhtml-im html"`
Body HTMLBody
Lang string `xml:"xml:lang,attr,omitempty"`
}
type HTMLBody struct {
XMLName xml.Name `xml:"http://www.w3.org/1999/xhtml body"`
Body XMLElement
}