Skip to content

Commit

Permalink
2 person login
Browse files Browse the repository at this point in the history
  • Loading branch information
frankmer committed May 29, 2024
1 parent d55e94f commit e242acf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/state_notifiers/push_request_notifier.dart
Original file line number Diff line number Diff line change
Expand Up @@ -220,11 +220,11 @@ class PushRequestNotifier extends StateNotifier<PushRequestState> {
/// It should be still in the CustomIntBuffer of the state.
Future<bool> accept(PushToken pushToken, PushRequest pushRequest, {String? selectedAnswer}) async {
if (pushRequest.accepted != null) {
Logger.warning('The push request is already accepted or declined.', name: 'push_request_notifier.dart#decline');
Logger.warning('The push request is already accepted or declined.', name: 'push_request_notifier.dart#accept');

return false;
}
Logger.info('Decline push request.', name: 'push_request_notifier.dart#decline');
Logger.info('Accept push request.', name: 'push_request_notifier.dart#accept');
final updated = await _updatePushRequest(pushRequest, (p0) async {
final updated = p0.copyWith(accepted: true, selectedAnswer: () => selectedAnswer);
final success = await _handleReaction(pushRequest: updated, token: pushToken);
Expand Down Expand Up @@ -339,7 +339,7 @@ class PushRequestNotifier extends StateNotifier<PushRequestState> {
body['answer'] = pushRequest.selectedAnswer!;
msg += '|${pushRequest.selectedAnswer!}';
}

Logger.warning('Signature message: $msg', name: 'token_widgets.dart#handleReaction');
String? signature = await _rsaUtils.trySignWithToken(token, msg);
if (signature == null) {
Logger.warning('Failed to sign push request response.', name: 'token_widgets.dart#handleReaction');
Expand Down

0 comments on commit e242acf

Please sign in to comment.