Skip to content

Commit 82515c3

Browse files
committed
api: Like zulip-mobile, don't allow connecting to Zulip Server <7.0
This goes rather farther than #1456, which is for bumping this number just to 5.0. This is OK; we recently bumped zulip-mobile to use 7.0, in the v27.235 release. zulip-mobile shows a "nag banner" to nudge server admins to upgrade. As of v27.235 (PR zulip/zulip-mobile#5922), that banner appears on 7.x servers, the latest 7.x having recently aged out of our 18-month support window. So we should feel comfortable nudging this number in zulip-flutter to 8.0 once v27.235 has been out for a little while. Fixes: #1456
1 parent 3dfa528 commit 82515c3

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ good time to [report them as issues][dart-test-tracker].
289289

290290
#### Server compatibility
291291

292-
We support Zulip Server 4.0 and later.
292+
We support Zulip Server 7.0 and later.
293293

294294
For API features added in newer versions, use `TODO(server-N)`
295295
comments (like those you see in the existing code.)

lib/api/core.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,14 @@ import 'exception.dart';
1414
///
1515
/// When updating this, also update [kMinSupportedZulipFeatureLevel]
1616
/// and the README.
17-
const kMinSupportedZulipVersion = '4.0';
17+
// TODO(#268) address all TODO(server-5), TODO(server-6), and TODO(server-7)
18+
const kMinSupportedZulipVersion = '7.0';
1819

1920
/// The Zulip feature level reserved for the [kMinSupportedZulipVersion] release.
2021
///
2122
/// For this value, see the API changelog:
2223
/// https://zulip.com/api/changelog
23-
const kMinSupportedZulipFeatureLevel = 65;
24+
const kMinSupportedZulipFeatureLevel = 185;
2425

2526
/// The doc stating our oldest supported server version.
2627
// TODO: Instead, link to new Help Center doc once we have it:

0 commit comments

Comments
 (0)