Skip to content

Commit 9c03803

Browse files
Merge branch 'zulip:main' into main
2 parents c339844 + 6adc9c3 commit 9c03803

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+352
-317
lines changed

assets/l10n/app_en.arb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -140,12 +140,12 @@
140140
"@unsubscribeConfirmationDialogTitle": {
141141
"description": "Title for a confirmation dialog for unsubscribing from a channel.",
142142
"placeholders": {
143-
"channelName": {"type": "String", "example": "mobile"}
143+
"channelName": {"type": "String", "example": "#mobile"}
144144
}
145145
},
146-
"unsubscribeConfirmationDialogMessageMaybeCannotResubscribe": "Once you leave this channel, you might not be able to rejoin.",
147-
"@unsubscribeConfirmationDialogMessageMaybeCannotResubscribe": {
148-
"description": "Message for a confirmation dialog for unsubscribing from a channel when you might not have permission to resubscribe."
146+
"unsubscribeConfirmationDialogMessageCannotResubscribe": "Once you leave this channel, you will not be able to rejoin.",
147+
"@unsubscribeConfirmationDialogMessageCannotResubscribe": {
148+
"description": "Message for a confirmation dialog for unsubscribing from a channel when you will not have permission to resubscribe."
149149
},
150150
"unsubscribeConfirmationDialogConfirmButton": "Unsubscribe",
151151
"@unsubscribeConfirmationDialogConfirmButton": {
@@ -597,7 +597,7 @@
597597
"@composeBoxGroupDmContentHint": {
598598
"description": "Hint text for content input when sending a message to a group."
599599
},
600-
"composeBoxSelfDmContentHint": "Jot down something",
600+
"composeBoxSelfDmContentHint": "Write yourself a note",
601601
"@composeBoxSelfDmContentHint": {
602602
"description": "Hint text for content input when sending a message to yourself."
603603
},

lib/api/core.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import 'exception.dart';
1414
///
1515
/// When updating this, also update [kMinSupportedZulipFeatureLevel]
1616
/// and the README.
17-
// TODO(#992) address all TODO(server-6) and TODO(server-7)
17+
// TODO(#1838) address all TODO(server-7)
1818
const kMinSupportedZulipVersion = '7.0';
1919

2020
/// The Zulip feature level reserved for the [kMinSupportedZulipVersion] release.

lib/api/model/events.dart

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ sealed class Event {
7171
case 'peer_remove': return SubscriptionPeerRemoveEvent.fromJson(json);
7272
default: return UnexpectedEvent.fromJson(json);
7373
}
74-
// case 'muted_topics': … // TODO(#422) we ignore this feature on older servers
7574
case 'user_status': return UserStatusEvent.fromJson(json);
7675
case 'user_topic': return UserTopicEvent.fromJson(json);
7776
case 'muted_users': return MutedUsersEvent.fromJson(json);
@@ -763,6 +762,7 @@ class SubscriptionUpdateEvent extends SubscriptionEvent {
763762

764763
final int streamId;
765764

765+
@JsonKey(unknownEnumValue: SubscriptionProperty.unknown)
766766
final SubscriptionProperty property;
767767

768768
/// The new value, or null if we don't recognize the setting.
@@ -783,7 +783,6 @@ class SubscriptionUpdateEvent extends SubscriptionEvent {
783783
assert(RegExp(r'^#[0-9a-f]{6}$').hasMatch(str));
784784
return 0xff000000 | int.parse(str.substring(1), radix: 16);
785785
case SubscriptionProperty.isMuted:
786-
case SubscriptionProperty.inHomeView:
787786
case SubscriptionProperty.pinToTop:
788787
case SubscriptionProperty.desktopNotifications:
789788
case SubscriptionProperty.audibleNotifications:
@@ -820,13 +819,18 @@ enum SubscriptionProperty {
820819
color,
821820

822821
isMuted,
823-
inHomeView,
824822
pinToTop,
825823
desktopNotifications,
826824
audibleNotifications,
827825
pushNotifications,
828826
emailNotifications,
829827
wildcardMentionsNotify,
828+
829+
/// A new, unrecognized property, or a deprecated one we don't use.
830+
///
831+
/// Could be `in_home_view`, deprecated in FL 139 (Server 6) but still sent
832+
/// as of CZO on 2025-10-03.
833+
// TODO(server-future) Remove `in_home_view` comment once it stops being sent.
830834
unknown;
831835

832836
static SubscriptionProperty fromRawString(String raw) => _byRawString[raw] ?? unknown;

lib/api/model/events.g.dart

Lines changed: 5 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/api/model/initial_snapshot.dart

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ class InitialSnapshot {
3535
@JsonKey(defaultValue: 10000)
3636
final int serverTypingStartedWaitPeriodMilliseconds;
3737

38-
// final List<…> mutedTopics; // TODO(#422) we ignore this feature on older servers
39-
4038
final List<MutedUserItem> mutedUsers;
4139

4240
// In the modern format because we pass `slim_presence`.
@@ -70,7 +68,7 @@ class InitialSnapshot {
7068

7169
final UserSettings userSettings;
7270

73-
final List<UserTopicItem>? userTopics; // TODO(server-6)
71+
final List<UserTopicItem> userTopics;
7472

7573
final GroupSettingValue? realmCanDeleteAnyMessageGroup; // TODO(server-10)
7674

@@ -111,7 +109,7 @@ class InitialSnapshot {
111109

112110
final int maxFileUploadSizeMib;
113111

114-
final Uri? serverEmojiDataUrl; // TODO(server-6)
112+
final Uri serverEmojiDataUrl;
115113

116114
final String? realmEmptyTopicDisplayName; // TODO(server-10)
117115

@@ -284,7 +282,7 @@ class UserSettings {
284282
)
285283
TwentyFourHourTimeMode twentyFourHourTime;
286284

287-
bool? displayEmojiReactionUsers; // TODO(server-6)
285+
bool displayEmojiReactionUsers;
288286
Emojiset emojiset;
289287
bool presenceEnabled;
290288

lib/api/model/initial_snapshot.g.dart

Lines changed: 5 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/api/model/model.dart

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class CustomProfileField {
6969
final String name;
7070
final String hint;
7171
final String fieldData;
72-
final bool? displayInProfileSummary; // TODO(server-6)
72+
final bool? displayInProfileSummary;
7373

7474
CustomProfileField({
7575
required this.id,
@@ -97,7 +97,7 @@ enum CustomProfileFieldType {
9797
link(apiValue: 5),
9898
user(apiValue: 6),
9999
externalAccount(apiValue: 7),
100-
pronouns(apiValue: 8), // TODO(server-6) newly added
100+
pronouns(apiValue: 8),
101101
unknown(apiValue: null);
102102

103103
const CustomProfileFieldType({
@@ -257,7 +257,6 @@ class StatusEmoji {
257257
///
258258
/// The absence of one of these means there is no change.
259259
class UserStatusChange {
260-
// final Option<bool> away; // deprecated in server-6 (FL-148); ignore
261260
final Option<String?> text;
262261
final Option<StatusEmoji?> emoji;
263262

@@ -793,7 +792,6 @@ class Subscription extends ZulipStream {
793792

794793
bool pinToTop;
795794
bool isMuted;
796-
// final bool? inHomeView; // deprecated; ignore
797795

798796
/// As an int that dart:ui's Color constructor will take:
799797
/// <https://api.flutter.dev/flutter/dart-ui/Color/Color.html>

lib/generated/l10n/zulip_localizations.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -341,11 +341,11 @@ abstract class ZulipLocalizations {
341341
/// **'Unsubscribe from {channelName}?'**
342342
String unsubscribeConfirmationDialogTitle(String channelName);
343343

344-
/// Message for a confirmation dialog for unsubscribing from a channel when you might not have permission to resubscribe.
344+
/// Message for a confirmation dialog for unsubscribing from a channel when you will not have permission to resubscribe.
345345
///
346346
/// In en, this message translates to:
347-
/// **'Once you leave this channel, you might not be able to rejoin.'**
348-
String get unsubscribeConfirmationDialogMessageMaybeCannotResubscribe;
347+
/// **'Once you leave this channel, you will not be able to rejoin.'**
348+
String get unsubscribeConfirmationDialogMessageCannotResubscribe;
349349

350350
/// Label for the 'Unsubscribe' button on a confirmation dialog for unsubscribing from a channel.
351351
///
@@ -952,7 +952,7 @@ abstract class ZulipLocalizations {
952952
/// Hint text for content input when sending a message to yourself.
953953
///
954954
/// In en, this message translates to:
955-
/// **'Jot down something'**
955+
/// **'Write yourself a note'**
956956
String get composeBoxSelfDmContentHint;
957957

958958
/// Hint text for content input when sending a message to a channel.

lib/generated/l10n/zulip_localizations_ar.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ class ZulipLocalizationsAr extends ZulipLocalizations {
124124
}
125125

126126
@override
127-
String get unsubscribeConfirmationDialogMessageMaybeCannotResubscribe =>
128-
'Once you leave this channel, you might not be able to rejoin.';
127+
String get unsubscribeConfirmationDialogMessageCannotResubscribe =>
128+
'Once you leave this channel, you will not be able to rejoin.';
129129

130130
@override
131131
String get unsubscribeConfirmationDialogConfirmButton => 'Unsubscribe';
@@ -501,7 +501,7 @@ class ZulipLocalizationsAr extends ZulipLocalizations {
501501
String get composeBoxGroupDmContentHint => 'Message group';
502502

503503
@override
504-
String get composeBoxSelfDmContentHint => 'Jot down something';
504+
String get composeBoxSelfDmContentHint => 'Write yourself a note';
505505

506506
@override
507507
String composeBoxChannelContentHint(String destination) {

lib/generated/l10n/zulip_localizations_de.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ class ZulipLocalizationsDe extends ZulipLocalizations {
126126
}
127127

128128
@override
129-
String get unsubscribeConfirmationDialogMessageMaybeCannotResubscribe =>
130-
'Wenn du diesen Kanal verlässt, kannst du sich vielleicht nicht wieder beitreten.';
129+
String get unsubscribeConfirmationDialogMessageCannotResubscribe =>
130+
'Once you leave this channel, you will not be able to rejoin.';
131131

132132
@override
133133
String get unsubscribeConfirmationDialogConfirmButton => 'Deabonnieren';

0 commit comments

Comments
 (0)