aboutsummaryrefslogtreecommitdiff
path: root/xmpp/extensions
diff options
context:
space:
mode:
authorBohdan Horbeshko <bodqhrohro@gmail.com>2023-03-15 00:16:02 +0300
committerBohdan Horbeshko <bodqhrohro@gmail.com>2023-03-15 00:16:02 +0300
commit90807b2d9e0565629a913d3b28b09c5fc9d746e6 (patch)
tree80c56bc83a926d2e0573f58a5786cd964b91775f /xmpp/extensions
parent7bd165a738d6c39d2f9e530c67118f8c639ffb0b (diff)
Convert XEP-0461 replies to Telegram
Diffstat (limited to 'xmpp/extensions')
-rw-r--r--xmpp/extensions/extensions.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/xmpp/extensions/extensions.go b/xmpp/extensions/extensions.go
index 7e44bae..c982581 100644
--- a/xmpp/extensions/extensions.go
+++ b/xmpp/extensions/extensions.go
@@ -121,22 +121,22 @@ type Reply struct {
// Fallback is from XEP-0428
type Fallback struct {
- XMLName xml.Name `xml:"urn:xmpp:fallback:0 fallback"`
- For string `xml:"for,attr"`
- Body []FallbackBody
- Subject []FallbackSubject
+ XMLName xml.Name `xml:"urn:xmpp:fallback:0 fallback"`
+ For string `xml:"for,attr"`
+ Body []FallbackBody `xml:"urn:xmpp:fallback:0 body"`
+ Subject []FallbackSubject `xml:"urn:xmpp:fallback:0 subject"`
}
// FallbackBody is from XEP-0428
type FallbackBody struct {
- XMLName xml.Name `xml:"body"`
+ XMLName xml.Name `xml:"urn:xmpp:fallback:0 body"`
Start string `xml:"start,attr"`
End string `xml:"end,attr"`
}
// FallbackSubject is from XEP-0428
type FallbackSubject struct {
- XMLName xml.Name `xml:"subject"`
+ XMLName xml.Name `xml:"urn:xmpp:fallback:0 subject"`
Start string `xml:"start,attr"`
End string `xml:"end,attr"`
}