Skip to content

Commit

Permalink
Direct Message [Action Sheet]: add Action sheet for a DM conversation
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhisheksainii committed Feb 6, 2025
1 parent ca26330 commit 0bdb17d
Show file tree
Hide file tree
Showing 18 changed files with 432 additions and 160 deletions.
4 changes: 4 additions & 0 deletions assets/l10n/app_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -792,5 +792,9 @@
"scrollToBottomTooltip": "Scroll to bottom",
"@scrollToBottomTooltip": {
"description": "Tooltip for button to scroll to bottom."
},
"showUsersInDM": "Show users in DM",
"@showUsersInDM": {
"description": "Label for showing users in DM through DM Action Sheet"
}
}
5 changes: 5 additions & 0 deletions lib/api/model/model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -949,3 +949,8 @@ enum PropagateMode {

String toJson() => _$PropagateModeEnumMap[this]!;
}

enum DMActionSheetOption{
markAsRead,
groupDmUsers,
}
6 changes: 6 additions & 0 deletions lib/generated/l10n/zulip_localizations.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1166,6 +1166,12 @@ abstract class ZulipLocalizations {
/// In en, this message translates to:
/// **'Scroll to bottom'**
String get scrollToBottomTooltip;

/// Label for showing users in DM through DM Action Sheet
///
/// In en, this message translates to:
/// **'Show users in DM'**
String get showUsersInDM;
}

class _ZulipLocalizationsDelegate extends LocalizationsDelegate<ZulipLocalizations> {
Expand Down
3 changes: 3 additions & 0 deletions lib/generated/l10n/zulip_localizations_ar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -620,4 +620,7 @@ class ZulipLocalizationsAr extends ZulipLocalizations {

@override
String get scrollToBottomTooltip => 'Scroll to bottom';

@override
String get showUsersInDM => 'Show users in DM';
}
3 changes: 3 additions & 0 deletions lib/generated/l10n/zulip_localizations_en.dart
Original file line number Diff line number Diff line change
Expand Up @@ -620,4 +620,7 @@ class ZulipLocalizationsEn extends ZulipLocalizations {

@override
String get scrollToBottomTooltip => 'Scroll to bottom';

@override
String get showUsersInDM => 'Show users in DM';
}
3 changes: 3 additions & 0 deletions lib/generated/l10n/zulip_localizations_ja.dart
Original file line number Diff line number Diff line change
Expand Up @@ -620,4 +620,7 @@ class ZulipLocalizationsJa extends ZulipLocalizations {

@override
String get scrollToBottomTooltip => 'Scroll to bottom';

@override
String get showUsersInDM => 'Show users in DM';
}
3 changes: 3 additions & 0 deletions lib/generated/l10n/zulip_localizations_nb.dart
Original file line number Diff line number Diff line change
Expand Up @@ -620,4 +620,7 @@ class ZulipLocalizationsNb extends ZulipLocalizations {

@override
String get scrollToBottomTooltip => 'Scroll to bottom';

@override
String get showUsersInDM => 'Show users in DM';
}
3 changes: 3 additions & 0 deletions lib/generated/l10n/zulip_localizations_pl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -620,4 +620,7 @@ class ZulipLocalizationsPl extends ZulipLocalizations {

@override
String get scrollToBottomTooltip => 'Scroll to bottom';

@override
String get showUsersInDM => 'Show users in DM';
}
3 changes: 3 additions & 0 deletions lib/generated/l10n/zulip_localizations_ru.dart
Original file line number Diff line number Diff line change
Expand Up @@ -620,4 +620,7 @@ class ZulipLocalizationsRu extends ZulipLocalizations {

@override
String get scrollToBottomTooltip => 'Scroll to bottom';

@override
String get showUsersInDM => 'Show users in DM';
}
3 changes: 3 additions & 0 deletions lib/generated/l10n/zulip_localizations_sk.dart
Original file line number Diff line number Diff line change
Expand Up @@ -620,4 +620,7 @@ class ZulipLocalizationsSk extends ZulipLocalizations {

@override
String get scrollToBottomTooltip => 'Scroll to bottom';

@override
String get showUsersInDM => 'Show users in DM';
}
Loading

0 comments on commit 0bdb17d

Please sign in to comment.