mirror of
https://dev.narayana.im/narayana/telegabber.git
synced 2026-08-04 19:57:07 +00:00
Version 1.10.0
This commit is contained in:
parent
f4d5ebc3ad
commit
c5e41c7ce8
5 changed files with 8 additions and 8 deletions
2
Makefile
2
Makefile
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
COMMIT := $(shell git rev-parse --short HEAD)
|
||||
TD_COMMIT := "5bbfc1cf5dab94f82e02f3430ded7241d4653551"
|
||||
VERSION := "v1.10.0-dev"
|
||||
VERSION := "v1.10.0"
|
||||
MAKEOPTS := "-j4"
|
||||
|
||||
all:
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ import (
|
|||
goxmpp "gosrc.io/xmpp"
|
||||
)
|
||||
|
||||
var version string = "1.10.0-dev"
|
||||
var version string = "1.10.0"
|
||||
var commit string
|
||||
|
||||
var sm *goxmpp.StreamManager
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ type messageStub struct {
|
|||
}
|
||||
|
||||
const (
|
||||
typeFileDataSha1 byte = iota
|
||||
typeFileDataSha1 byte = iota
|
||||
typeFileDataBase64
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -465,7 +465,7 @@ func SendPubSubAvatarNotification(component *xmpp.Component, jid string, chatId
|
|||
Id: sha1,
|
||||
Any: &stanza.Node{
|
||||
XMLName: xml.Name{Local: "metadata", Space: NodeAvatarMetadata},
|
||||
Nodes: []stanza.Node{info},
|
||||
Nodes: []stanza.Node{info},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
|||
|
|
@ -505,7 +505,7 @@ func handleGetAvatarDataIq(s xmpp.Sender, iq *stanza.IQ, pubsub *stanza.PubSubGe
|
|||
if len(pubsub.Items.List) > 0 {
|
||||
id = pubsub.Items.List[0].Id
|
||||
}
|
||||
log.Infof("Avatar id %v for chat %v", id, iq.To);
|
||||
log.Infof("Avatar id %v for chat %v", id, iq.To)
|
||||
|
||||
pubsubAnswer := stanza.PubSubGeneric{
|
||||
Items: &stanza.Items{
|
||||
|
|
@ -1005,9 +1005,9 @@ func handleSetQueryCommand(s xmpp.Sender, iq *stanza.IQ, command *stanza.Command
|
|||
}
|
||||
|
||||
answer.Payload = &stanza.Command{
|
||||
SessionId: command.Node,
|
||||
Node: command.Node,
|
||||
Status: stanza.CommandStatusCompleted,
|
||||
SessionId: command.Node,
|
||||
Node: command.Node,
|
||||
Status: stanza.CommandStatusCompleted,
|
||||
CommandElements: []stanza.CommandElement{
|
||||
&stanza.Note{
|
||||
Text: response,
|
||||
|
|
|
|||
Loading…
Reference in a new issue