Update tdlib

This commit is contained in:
Andrea Cavalli 2022-11-15 02:28:46 +01:00
parent b2f199d5b2
commit 9fa9f8534e
3 changed files with 10 additions and 6 deletions

View File

@ -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

View File

@ -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/>

View File

@ -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);
}
}
}