Skip to content
Snippets Groups Projects
Commit 316045ec authored by Richard T. Carback III's avatar Richard T. Carback III
Browse files

Remove restriction when resetting a channel

parent 3c569580
No related branches found
No related tags found
3 merge requests!233Modify restore to call user-defined bindings callback. Add Sent requests to...,!231Revert "Update store to print changes to the partners list",!192Hotfix/improved restore
......@@ -88,10 +88,12 @@ func requestAuth(partner, me contact.Contact, rng io.Reader, reset bool,
} else if err == nil {
switch rqType {
case auth.Receive:
// TODO: We've already received a request, so send a
// confirmation instead?
return 0, errors.Errorf("Cannot send a request after " +
"receiving a request")
if reset {
storage.Auth().DeleteRequest(partner.ID)
} else {
return 0, errors.Errorf("Cannot send a " +
"request after receiving a request")
}
case auth.Sent:
resend = true
default:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment