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