summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2022-02-19 20:48:04 +0100
committerRoman Smrž <roman.smrz@seznam.cz>2022-02-19 20:48:04 +0100
commitcad8af9d9a5a714ebefa7801f295234e22e2d5f1 (patch)
tree8e411d5f1a0c1ac1064645bf198e6731bba666e5 /src
parent21e1b04474ee5e8bc7acdd53772331f850234811 (diff)
Pairing: rename 'decline' to 'reject'
Diffstat (limited to 'src')
-rw-r--r--src/pairing.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pairing.cpp b/src/pairing.cpp
index 0618a19..e1e04cc 100644
--- a/src/pairing.cpp
+++ b/src/pairing.cpp
@@ -140,7 +140,7 @@ void PairingServiceBase::handle(Context & ctx)
state->phase = StatePhase::PeerRequestConfirm;
}
- else if (auto decline = rec->item("decline").asText()) {
+ else if (auto reject = rec->item("reject").asText()) {
if (state->phase < StatePhase::PairingDone) {
state->phase = StatePhase::PairingFailed;
state->success.set_value(false);
@@ -260,7 +260,7 @@ void PairingServiceBase::waitForConfirmation(Peer peer, weak_ptr<State> wstate,
}
} else {
if (state->phase != StatePhase::PairingFailed) {
- peer.send(uuid(), Object(Record({{ "decline", string() }})));
+ peer.send(uuid(), Object(Record({{ "reject", string() }})));
state->phase = StatePhase::PairingFailed;
state->success.set_value(false);
}