diff options
author | Bohdan Horbeshko <bodqhrohro@gmail.com> | 2023-09-28 20:14:17 +0300 |
---|---|---|
committer | Bohdan Horbeshko <bodqhrohro@gmail.com> | 2023-09-28 20:14:17 +0300 |
commit | cdaaa75c960c949a81114824b7f7b516d962ec68 (patch) | |
tree | d1c01e892f8a30cbbfb547c295265b0c3ead97ac /xmpp/extensions/extensions.go | |
parent | b68c07025d1dd077c73ec3b4052ea453612e3e9c (diff) |
Send last pinned message as subject on MUC join
Diffstat (limited to 'xmpp/extensions/extensions.go')
-rw-r--r-- | xmpp/extensions/extensions.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/xmpp/extensions/extensions.go b/xmpp/extensions/extensions.go index 41a58fa..8ff034d 100644 --- a/xmpp/extensions/extensions.go +++ b/xmpp/extensions/extensions.go @@ -261,6 +261,11 @@ type MessageAddress struct { Jid string `xml:"jid,attr"` } +// EmptySubject is a dummy for MUCs to circumvent omitempty. Not registered as it would conflict with Subject field +type EmptySubject struct { + XMLName xml.Name `xml:"subject"` +} + // Namespace is a namespace! func (c PresenceNickExtension) Namespace() string { return c.XMLName.Space |