Skip to content

Commit

Permalink
Question that is sent should not be localized
Browse files Browse the repository at this point in the history
  • Loading branch information
Yakira Dixon committed Sep 6, 2017
1 parent a081f15 commit 3b780cb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions gui/verifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ func (v *verifier) showPINDialog() {
return
}
v.pinWindow.pin.SetText(pin)
v.session.StartSMP(v.peerJid, v.currentResource, i18n.Local("Please enter the PIN that I shared with you."), pin)
v.session.StartSMP(v.peerJid, v.currentResource, question, pin)
v.pinWindow.d.ShowAll()
}

Expand Down Expand Up @@ -257,7 +257,8 @@ func (v *verifier) buildAnswerSMPDialog() {

}

var coyIMQuestion = regexp.MustCompile("Please enter the PIN that .+ shared with you.")
var question = "Please enter the PIN that I shared with you."
var coyIMQuestion = regexp.MustCompile("Please enter the PIN that I shared with you.")

func (v *verifier) showAnswerSMPDialog(question string) {
if "" == question {
Expand Down

0 comments on commit 3b780cb

Please sign in to comment.