mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-12 15:24:09 +01:00
Deprecate legacy method
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
835cac8189
commit
f2fe776603
@ -182,6 +182,15 @@ public class ApiUtils {
|
|||||||
throw new NoSupportedApiException();
|
throw new NoSupportedApiException();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* migrate to {@link #getChatApiVersion(User, int[])}.
|
||||||
|
*
|
||||||
|
* @param user User
|
||||||
|
* @param versions API versions
|
||||||
|
* @return to be used verison
|
||||||
|
* @throws NoSupportedApiException if no supported version available
|
||||||
|
*/
|
||||||
|
@Deprecated
|
||||||
public static int getChatApiVersion(UserEntity user, int[] versions) throws NoSupportedApiException {
|
public static int getChatApiVersion(UserEntity user, int[] versions) throws NoSupportedApiException {
|
||||||
for (int version : versions) {
|
for (int version : versions) {
|
||||||
if (version == APIv1 && CapabilitiesUtil.hasSpreedFeatureCapability(user, "chat-v2")) {
|
if (version == APIv1 && CapabilitiesUtil.hasSpreedFeatureCapability(user, "chat-v2")) {
|
||||||
|
Loading…
Reference in New Issue
Block a user