diff options
author | Christian Schneppe <christian@pix-art.de> | 2018-04-12 20:56:39 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2018-04-12 20:56:39 +0200 |
commit | bdc3e725d1610d14374dc7983a612673d980e979 (patch) | |
tree | b1fb509d17d7ddc8438c92a437fc02510e7696bd /src/main/java/de/pixart/messenger/entities | |
parent | 681511379f85b3b01cf548bfb7493c8283e2072d (diff) |
presist http upload availibility
Diffstat (limited to 'src/main/java/de/pixart/messenger/entities')
-rw-r--r-- | src/main/java/de/pixart/messenger/entities/Account.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/java/de/pixart/messenger/entities/Account.java b/src/main/java/de/pixart/messenger/entities/Account.java index 222e33b3b..ef42ceeb7 100644 --- a/src/main/java/de/pixart/messenger/entities/Account.java +++ b/src/main/java/de/pixart/messenger/entities/Account.java @@ -60,16 +60,15 @@ public class Account extends AbstractEntity { public static final int OPTION_MAGIC_CREATE = 4; public static final int OPTION_REQUIRES_ACCESS_MODE_CHANGE = 5; public static final int OPTION_LOGGED_IN_SUCCESSFULLY = 6; + public static final int OPTION_HTTP_UPLOAD_AVAILABLE = 7; public final HashSet<Pair<String, String>> inProgressDiscoFetches = new HashSet<>(); public boolean httpUploadAvailable(long filesize) { - //make httpUpload independent from filesize - filesize = 0; return xmppConnection != null && xmppConnection.getFeatures().httpUpload(filesize); } public boolean httpUploadAvailable() { - return httpUploadAvailable(0); + return isOptionSet(OPTION_HTTP_UPLOAD_AVAILABLE) || httpUploadAvailable(0); } public void setDisplayName(String displayName) { |