Fix java 8 build

This commit is contained in:
Andrea Cavalli 2023-08-30 11:51:06 +02:00
parent 41e83aa950
commit 6e7f82fa95
3 changed files with 3 additions and 3 deletions

View File

@ -26,7 +26,7 @@
<dependency>
<groupId>it.tdlight</groupId>
<artifactId>tdlight-java-bom</artifactId>
<version>3.0.12+td.1.8.14</version>
<version>3.1.0+td.1.8.16</version>
<type>pom</type>
<scope>import</scope>
</dependency>

View File

@ -122,7 +122,7 @@ public final class SimpleTelegramClient implements Authenticable, MutableTelegra
this.addUpdateHandler(TdApi.UpdateAuthorizationState.class,
this.meGetter = new AuthorizationStateReadyGetMe(client, mainChatsLoader, archivedChatsLoader));
this.addUpdateHandler(TdApi.UpdateNewMessage.class, new CommandsHandler(client, this.commandHandlers, this::getMe));
var temporaryMessageHandler = new TemporaryMessageHandler(this.temporaryMessages);
TemporaryMessageHandler temporaryMessageHandler = new TemporaryMessageHandler(this.temporaryMessages);
this.addUpdateHandler(TdApi.UpdateMessageSendSucceeded.class, temporaryMessageHandler);
this.addUpdateHandler(TdApi.UpdateMessageSendFailed.class, temporaryMessageHandler);
this.authenticationData = authenticationData;

View File

@ -28,7 +28,7 @@ final class TemporaryMessageURL {
if (obj == null || obj.getClass() != this.getClass()) {
return false;
}
var that = (TemporaryMessageURL) obj;
TemporaryMessageURL that = (TemporaryMessageURL) obj;
return this.chatId == that.chatId && this.messageId == that.messageId;
}