Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c3f24e81 authored by masensio's avatar masensio Committed by David A. Velasco
Browse files

Add method to know if server supports search users function

parent f02dffb1
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -43,6 +43,8 @@ public class OwnCloudVersion implements Comparable<OwnCloudVersion> {

    public static final int MINIMUM_SERVER_VERSION_FOR_REMOTE_THUMBNAILS = 0x07080000; // 7.8.0

    public static final int MINIMUM_VERSION_FOR_SEARCHING_USERS = 0x08020000; //8.2

    public static final int VERSION_8 = 0x08000000; // 8.0
    
    private static final int MAX_DOTS = 3;
@@ -139,5 +141,9 @@ public class OwnCloudVersion implements Comparable<OwnCloudVersion> {
        return (mVersion >= VERSION_8);
    }

    public boolean isSearchUsersSupported() {
        return (mVersion >= MINIMUM_VERSION_FOR_SEARCHING_USERS);
    }
    
    
}