summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2023-07-04 12:43:47 +0200
committerxengineering <me@xengineering.eu>2023-07-04 12:43:47 +0200
commit8e84ca8a4d340956bd0aaead59d5c79dcaede6a5 (patch)
tree718f6aee67222706c2e886d427b29cec3f034bc5
parent9f87ef34c589825d65824a8c9210fed5bf92f94d (diff)
downloadlimox-8e84ca8a4d340956bd0aaead59d5c79dcaede6a5.tar
limox-8e84ca8a4d340956bd0aaead59d5c79dcaede6a5.tar.zst
limox-8e84ca8a4d340956bd0aaead59d5c79dcaede6a5.zip
Remove xmpp.presence type
This was empty and has no benefit.
-rw-r--r--xmpp/presence.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/xmpp/presence.go b/xmpp/presence.go
index e2b1841..00eaa47 100644
--- a/xmpp/presence.go
+++ b/xmpp/presence.go
@@ -5,15 +5,13 @@ import (
"log"
)
-type presence struct{}
-
func (s *session) sendPresence() {
start := xml.StartElement{
xml.Name{"", "presence"},
[]xml.Attr{},
}
- err := s.tx.EncodeElement(presence{}, start)
+ err := s.tx.EncodeElement(struct{}{}, start)
if err != nil {
log.Println("Could not encode presence!")
return