Fix java 8 build
This commit is contained in:
parent
41e83aa950
commit
6e7f82fa95
@ -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>
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user