This commit is contained in:
Andrea Cavalli 2021-10-24 01:11:01 +02:00
parent 4f3c8cb6b7
commit ca67a5620b
2 changed files with 3 additions and 1 deletions

View File

@ -26,7 +26,7 @@
<dependency> <dependency>
<groupId>it.tdlight</groupId> <groupId>it.tdlight</groupId>
<artifactId>tdlight-java</artifactId> <artifactId>tdlight-java</artifactId>
<version>2.7.8.39</version> <version>2.7.8.40</version>
</dependency> </dependency>
<!-- TDLight natives --> <!-- TDLight natives -->

View File

@ -86,6 +86,7 @@ final class ScannerClientInteraction implements ClientInteraction {
System.out.println(QrCodeTerminal.getQr(link)); System.out.println(QrCodeTerminal.getQr(link));
System.out.println(); System.out.println();
resultCons.accept(""); resultCons.accept("");
return;
case TERMS_OF_SERVICE: case TERMS_OF_SERVICE:
TermsOfService tos = ((ParameterInfoTermsOfService) parameterInfo).getTermsOfService(); TermsOfService tos = ((ParameterInfoTermsOfService) parameterInfo).getTermsOfService();
question = "Terms of service:\n\t" + tos.text.text; question = "Terms of service:\n\t" + tos.text.text;
@ -98,6 +99,7 @@ final class ScannerClientInteraction implements ClientInteraction {
} else { } else {
System.out.println(question); System.out.println(question);
resultCons.accept(""); resultCons.accept("");
return;
} }
break; break;
default: default: