Fix typo in go_xmpp lib.
This commit is contained in:
parent
3e8cec5bd9
commit
94936bdc3a
|
|
@ -110,7 +110,7 @@ func (confirmation *Confirmation) askViaMessage() {
|
|||
m := xmpp.Message{From: jid.Full(), To: confirmation.JID, Type: xmpp.MessageTypeNormal}
|
||||
m.Thread = xmpp.SessionID()
|
||||
confirmation.setBodies(&m)
|
||||
m.Confir = &xmpp.Confirm{Id: confirmation.Transaction, Method: confirmation.Method, URL: confirmation.Domain}
|
||||
m.Confirm = &xmpp.Confirm{Id: confirmation.Transaction, Method: confirmation.Method, URL: confirmation.Domain}
|
||||
|
||||
log.Printf("%sSend message %v", LogInfo, m)
|
||||
WaitMessageAnswers[confirmation.Transaction] = confirmation
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@ func mainXMPP() {
|
|||
case *xmpp.Presence:
|
||||
|
||||
case *xmpp.Message:
|
||||
confirm := v.Confir
|
||||
confirm := v.Confirm
|
||||
if confirm != nil {
|
||||
confirmation := WaitMessageAnswers[confirm.Id]
|
||||
processConfirm(v, confirmation)
|
||||
|
|
|
|||
Loading…
Reference in New Issue