diff --git a/Makefile b/Makefile index d6323d0..724c73d 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ COMMIT := $(shell git rev-parse --short HEAD) TD_COMMIT := "8517026415e75a8eec567774072cbbbbb52376c1" -VERSION := "v1.8.0-dev" +VERSION := "v1.8.0" MAKEOPTS := "-j4" all: diff --git a/telegabber.go b/telegabber.go index 671e13b..f409599 100644 --- a/telegabber.go +++ b/telegabber.go @@ -15,7 +15,7 @@ import ( goxmpp "gosrc.io/xmpp" ) -var version string = "1.8.0-dev" +var version string = "1.8.0" var commit string var sm *goxmpp.StreamManager diff --git a/telegram/utils.go b/telegram/utils.go index 4d77fc4..47a851a 100644 --- a/telegram/utils.go +++ b/telegram/utils.go @@ -249,15 +249,15 @@ func (c *Client) ProcessStatusUpdate(chatID int64, status string, show string, o presenceType = typ } log.WithFields(log.Fields{ - "show": show, - "status": status, + "show": show, + "status": status, "presenceType": presenceType, }).Debug("Cached status") } else if user != nil && user.Status != nil { show, status, presenceType = c.userStatusToText(user.Status, chatID) log.WithFields(log.Fields{ - "show": show, - "status": status, + "show": show, + "status": status, "presenceType": presenceType, }).Debug("Status to text") } else { diff --git a/xmpp/handlers.go b/xmpp/handlers.go index fdcf647..4c27b3c 100644 --- a/xmpp/handlers.go +++ b/xmpp/handlers.go @@ -624,35 +624,35 @@ func iqAnswerSetError(answer *stanza.IQ, payload *extensions.QueryRegister, code switch code { case 400: answer.Error = &stanza.Err{ - Code: code, - Type: stanza.ErrorTypeModify, + Code: code, + Type: stanza.ErrorTypeModify, Reason: "bad-request", } case 405: answer.Error = &stanza.Err{ - Code: code, - Type: stanza.ErrorTypeCancel, + Code: code, + Type: stanza.ErrorTypeCancel, Reason: "not-allowed", - Text: "Logging out is dangerous. If you are sure you would be able to receive the authentication code again, issue the /logout command to the transport", + Text: "Logging out is dangerous. If you are sure you would be able to receive the authentication code again, issue the /logout command to the transport", } case 406: answer.Error = &stanza.Err{ - Code: code, - Type: stanza.ErrorTypeModify, + Code: code, + Type: stanza.ErrorTypeModify, Reason: "not-acceptable", - Text: "Phone number already provided, chat with the transport for further instruction", + Text: "Phone number already provided, chat with the transport for further instruction", } case 500: answer.Error = &stanza.Err{ - Code: code, - Type: stanza.ErrorTypeWait, + Code: code, + Type: stanza.ErrorTypeWait, Reason: "internal-server-error", } default: log.Error("Unknown error code, falling back with empty reason") answer.Error = &stanza.Err{ - Code: code, - Type: stanza.ErrorTypeCancel, + Code: code, + Type: stanza.ErrorTypeCancel, Reason: "undefined-condition", } }