mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-21 22:02:06 +01:00
Merge branch '4.4'
This commit is contained in:
commit
1bfb9f34f1
3 changed files with 8 additions and 5 deletions
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
@ -1,4 +1,4 @@
|
||||||
name: Smack CI
|
name: CI
|
||||||
|
|
||||||
env:
|
env:
|
||||||
GRADLE_VERSION: 6.7.1
|
GRADLE_VERSION: 6.7.1
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
Smack
|
Smack
|
||||||
=====
|
=====
|
||||||
|
|
||||||
[![Build Status](https://api.travis-ci.com/igniterealtime/Smack.svg?branch=master)](https://travis-ci.com/github/igniterealtime/Smack) [![Coverage Status](https://coveralls.io/repos/igniterealtime/Smack/badge.svg)](https://coveralls.io/r/igniterealtime/Smack) [![Project Stats](https://www.openhub.net/p/smack/widgets/project_thin_badge.gif)](https://www.openhub.net/p/smack) [![Link to XMPP chat smack@conference.igniterealtime.org](https://inverse.chat/badge.svg?room=smack@conference.igniterealtime.org)](https://inverse.chat/#converse/room?jid=smack@conference.igniterealtime.org)
|
[![Build Status](https://github.com/igniterealtime/Smack/workflows/CI/badge.svg)](https://github.com/igniterealtime/Smack/actions?query=workflow%3A%22CI%22) [![Coverage Status](https://coveralls.io/repos/igniterealtime/Smack/badge.svg)](https://coveralls.io/r/igniterealtime/Smack) [![Project Stats](https://www.openhub.net/p/smack/widgets/project_thin_badge.gif)](https://www.openhub.net/p/smack) [![Link to XMPP chat smack@conference.igniterealtime.org](https://inverse.chat/badge.svg?room=smack@conference.igniterealtime.org)](https://inverse.chat/#converse/room?jid=smack@conference.igniterealtime.org)
|
||||||
|
|
||||||
About
|
About
|
||||||
-----
|
-----
|
||||||
|
|
|
@ -312,7 +312,10 @@ public final class EntityCapsManager extends Manager {
|
||||||
// XEP-0115 specifies that a client SHOULD include entity capabilities
|
// XEP-0115 specifies that a client SHOULD include entity capabilities
|
||||||
// with every presence notification it sends.
|
// with every presence notification it sends.
|
||||||
private void addCapsExtension(PresenceBuilder presenceBuilder) {
|
private void addCapsExtension(PresenceBuilder presenceBuilder) {
|
||||||
CapsVersionAndHash capsVersionAndHash = getCapsVersionAndHash();
|
final CapsVersionAndHash capsVersionAndHash = getCapsVersionAndHash();
|
||||||
|
if (capsVersionAndHash == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
CapsExtension caps = new CapsExtension(entityNode, capsVersionAndHash.version, capsVersionAndHash.hash);
|
CapsExtension caps = new CapsExtension(entityNode, capsVersionAndHash.version, capsVersionAndHash.hash);
|
||||||
presenceBuilder.overrideExtension(caps);
|
presenceBuilder.overrideExtension(caps);
|
||||||
}
|
}
|
||||||
|
@ -434,10 +437,10 @@ public final class EntityCapsManager extends Manager {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get our own caps version. The version depends on the enabled features.
|
* Get our own caps version or {@code null} if none is yet set. The version depends on the enabled features.
|
||||||
* A caps version looks like '66/0NaeaBKkwk85efJTGmU47vXI='
|
* A caps version looks like '66/0NaeaBKkwk85efJTGmU47vXI='
|
||||||
*
|
*
|
||||||
* @return our own caps version
|
* @return our own caps version or {@code null}.
|
||||||
*/
|
*/
|
||||||
public CapsVersionAndHash getCapsVersionAndHash() {
|
public CapsVersionAndHash getCapsVersionAndHash() {
|
||||||
return currentCapsVersion;
|
return currentCapsVersion;
|
||||||
|
|
Loading…
Reference in a new issue