Skip to content
This repository has been archived by the owner on Oct 19, 2022. It is now read-only.

Commit

Permalink
OT-757: Regression: Flagged Messages not filtered per Chat (#484)
Browse files Browse the repository at this point in the history
  • Loading branch information
phranck authored Mar 26, 2020
1 parent ef006f9 commit 4ec43f4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion lib/src/chat/chat_profile_group.dart
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ class _ChatProfileGroupState extends State<ChatProfileGroup> {
case SettingsItemName.flagged:
_navigation.push(
context,
MaterialPageRoute(builder: (context) => Flagged()),
MaterialPageRoute(builder: (context) => Flagged(chatId: widget.chatId)),
);
break;
case SettingsItemName.notification:
Expand Down
2 changes: 1 addition & 1 deletion lib/src/chat/chat_profile_single.dart
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ class _ChatProfileOneToOneState extends State<ChatProfileOneToOne> {
case SettingsItemName.flagged:
_navigation.push(
context,
MaterialPageRoute(builder: (context) => Flagged()),
MaterialPageRoute(builder: (context) => Flagged(chatId: widget.chatId)),
);
break;
case SettingsItemName.notification:
Expand Down
13 changes: 7 additions & 6 deletions lib/src/contact/contact_details.dart
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,13 @@ class _ContactDetailsState extends State<ContactDetails> with ChatCreateMixin {
iconBackground: CustomTheme.of(context).chatIcon,
onTap: () => createChatFromContact(context, widget.contactId),
),
SettingsItem(
icon: IconSource.flag,
text: L10n.get(L.settingItemFlaggedTitle),
iconBackground: CustomTheme.of(context).flagIcon,
onTap: () => _settingsItemTapped(context, SettingsItemName.flagged),
),
//TODO: This should be discussed (Flagged messages per user)!
// SettingsItem(
// icon: IconSource.flag,
// text: L10n.get(L.settingItemFlaggedTitle),
// iconBackground: CustomTheme.of(context).flagIcon,
// onTap: () => _settingsItemTapped(context, SettingsItemName.flagged),
// ),
SettingsItem(
key: Key(keyUserProfileBlockIconSource),
icon: IconSource.block,
Expand Down

0 comments on commit 4ec43f4

Please sign in to comment.