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>
<groupId>it.tdlight</groupId>
<artifactId>tdlight-java</artifactId>
<version>2.7.8.39</version>
<version>2.7.8.40</version>
</dependency>
<!-- TDLight natives -->

View File

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