Update tdlib
This commit is contained in:
parent
bb1bd903d1
commit
4d5789bac1
@ -26,7 +26,7 @@
|
||||
<dependency>
|
||||
<groupId>it.tdlight</groupId>
|
||||
<artifactId>tdlight-java-bom</artifactId>
|
||||
<version>2.8.8.0</version>
|
||||
<version>2.8.8.1</version>
|
||||
<type>pom</type>
|
||||
<scope>import</scope>
|
||||
</dependency>
|
||||
|
@ -86,7 +86,7 @@ final class CommandsHandler implements GenericUpdateHandler<UpdateNewMessage> {
|
||||
|
||||
private Optional<String> getMyUsername() {
|
||||
User user = this.me.get();
|
||||
if (user == null || user.usernames.editableUsername == null || user.usernames.editableUsername.isEmpty()) {
|
||||
if (user == null || user.usernames == null) {
|
||||
return Optional.empty();
|
||||
} else {
|
||||
return Optional.of(user.usernames.editableUsername);
|
||||
|
Loading…
x
Reference in New Issue
Block a user