1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-12-25 20:18:00 +01:00

[chatmarkers] Deprecate ChatMarkers.isSupportedByServer()

Fixes SMACK-934.
This commit is contained in:
Florian Schmaus 2023-11-24 13:09:21 +01:00
parent a270542397
commit 5560fb4752

View file

@ -174,7 +174,10 @@ public final class ChatMarkersManager extends Manager {
* @throws XMPPErrorException in case an error response was received. * @throws XMPPErrorException in case an error response was received.
* @throws NoResponseException if no response was received. * @throws NoResponseException if no response was received.
* @throws InterruptedException if the connection is interrupted. * @throws InterruptedException if the connection is interrupted.
* @deprecated This method serves no purpose, as servers do not announce this feature.
*/ */
// TODO: Remove in Smack 4.6.
@Deprecated
public boolean isSupportedByServer() public boolean isSupportedByServer()
throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException { throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {
return ServiceDiscoveryManager.getInstanceFor(connection()) return ServiceDiscoveryManager.getInstanceFor(connection())