Send resource also for gateway JID

This commit is contained in:
Chteufleur 2016-04-23 16:35:23 +02:00
parent 7368dce789
commit 844eddae4f
2 changed files with 3 additions and 3 deletions

View File

@ -153,9 +153,9 @@ func (g *GatewayInfo) SendXmppPresence(status, tpye, to, from, message, nick str
}
if from == "" {
// TODO add an option to allow message comming directly from the gateway
p.From = XmppJidComponent
p.From = XmppJidComponent + "/" + resource
} else {
p.From = from+"/"+resource
p.From = from + "/" + resource
}
log.Printf("%sSend presence %v", LogXmppInfo, p)