Update tdlib
This commit is contained in:
parent
b2f199d5b2
commit
9fa9f8534e
8
.github/workflows/maven-publish.yml
vendored
8
.github/workflows/maven-publish.yml
vendored
@ -33,9 +33,11 @@ jobs:
|
||||
echo "REVISION=$REVISION" >> $GITHUB_ENV
|
||||
- name: Set up JDK 17 (Snapshot)
|
||||
if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
|
||||
uses: actions/setup-java@v1
|
||||
uses: actions/setup-java@v3
|
||||
with:
|
||||
java-version: 17
|
||||
distribution: temurin
|
||||
cache: 'maven'
|
||||
server-id: mchv-snapshot-distribution
|
||||
server-username: MAVEN_USERNAME
|
||||
server-password: MAVEN_PASSWORD
|
||||
@ -49,9 +51,11 @@ jobs:
|
||||
MAVEN_PASSWORD: ${{ secrets.MCHV_TOKEN }}
|
||||
- name: Set up JDK 17 (Release)
|
||||
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
|
||||
uses: actions/setup-java@v1
|
||||
uses: actions/setup-java@v3
|
||||
with:
|
||||
java-version: 17
|
||||
distribution: temurin
|
||||
cache: 'maven'
|
||||
server-id: mchv-release-distribution
|
||||
server-username: MAVEN_USERNAME
|
||||
server-password: MAVEN_PASSWORD
|
||||
|
@ -8,8 +8,8 @@
|
||||
<name>TDLight Java BOM</name>
|
||||
<properties>
|
||||
<revision>1.0.0.0-SNAPSHOT</revision>
|
||||
<nativesRevisionNumber>274</nativesRevisionNumber>
|
||||
<apiRevisionNumber>272</apiRevisionNumber>
|
||||
<nativesRevisionNumber>282</nativesRevisionNumber>
|
||||
<apiRevisionNumber>280</apiRevisionNumber>
|
||||
<nativesRevisionSuffix/>
|
||||
<tdlight.natives.version>4.0.${nativesRevisionNumber}${nativesRevisionSuffix}</tdlight.natives.version>
|
||||
<apiRevisionSuffix/>
|
||||
|
@ -86,10 +86,10 @@ final class CommandsHandler implements GenericUpdateHandler<UpdateNewMessage> {
|
||||
|
||||
private Optional<String> getMyUsername() {
|
||||
User user = this.me.get();
|
||||
if (user == null || user.username == null || user.username.isEmpty()) {
|
||||
if (user == null || user.usernames.editableUsername == null || user.usernames.editableUsername.isEmpty()) {
|
||||
return Optional.empty();
|
||||
} else {
|
||||
return Optional.of(user.username);
|
||||
return Optional.of(user.usernames.editableUsername);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user