-
-
Notifications
You must be signed in to change notification settings - Fork 673
api: Start relying more on non-ancient servers #5100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
ff62163
f737cdb
a155548
026a4f9
401b3a2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,10 +30,11 @@ export type InitialDataBase = $ReadOnly<{| | |
// `fetch_event_types` and remove this comment. | ||
|
||
/** | ||
* Added in server version 2.2, feature level 1. | ||
* Added in server version 3.0, feature level 1. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Eep, thanks for catching this! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, to be clear, this wasn't wrong, just outdated -- 3.0 is the name we used for the next major release after 2.1, what was originally planned as 2.2. (That's the point at which we shortened the version numbers, following the industry-wide trend of recent years.) |
||
* Same meaning as in the server_settings response: | ||
* https://zulip.com/api/get-server-settings. See also the comment above. | ||
*/ | ||
// TODO(server-3.0): Mark as required. | ||
zulip_feature_level?: number, | ||
|
||
/** | ||
|
@@ -59,8 +60,8 @@ export type InitialDataMutedTopics = $ReadOnly<{| | |
muted_topics: $ReadOnlyArray<MuteTuple>, | ||
|}>; | ||
|
||
/** Added in server version 4.0, feature level 48 */ | ||
export type InitialDataMutedUsers = $ReadOnly<{| | ||
/** (When absent, treat as empty. Added in server version 4.0, feature level 48.) */ | ||
muted_users?: $ReadOnlyArray<MutedUser>, | ||
|}>; | ||
|
||
|
@@ -124,6 +125,7 @@ export type InitialDataRealmEmoji = $ReadOnly<{| | |
export type RawInitialDataRealmFilters = $ReadOnly<{| | ||
// We still request this, since not all servers can provide the | ||
// newer `realm_linkifiers` format. | ||
// TODO(server-4.0): Drop this. | ||
realm_filters?: $ReadOnlyArray<RealmFilter>, | ||
|}>; | ||
|
||
|
@@ -173,14 +175,17 @@ export type InitialDataRealmUserGroups = $ReadOnly<{| | |
/** | ||
* Absent in servers prior to v1.8.0-rc1~2711 (or thereabouts). | ||
*/ | ||
// TODO(server-1.8): Mark as required. | ||
realm_user_groups?: $ReadOnlyArray<UserGroup>, | ||
|}>; | ||
|
||
export type InitialDataRecentPmConversations = $ReadOnly<{| | ||
// * Added in server commit 2.1-dev-384-g4c3c669b41. | ||
// TODO(server-2.1): Mark this required. See MIN_RECENTPMS_SERVER_VERSION. | ||
// * `user_id` fields are sorted as of commit 2.2-dev-53-g405a529340, which | ||
// was backported to 2.1.1-50-gd452ad31e0 -- meaning that they are _not_ | ||
// sorted in either v2.1.0 or v2.1.1. | ||
// TODO(server-3.0): Simply say these are sorted. ("2.2" became 3.0.) | ||
recent_private_conversations?: $ReadOnlyArray<RecentPrivateConversation>, | ||
|}>; | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've filed #5102 for this task.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good, thanks!