Skip to content

Commit

Permalink
fixup! TW-1996-removed-activated-status-in-accounts-tab
Browse files Browse the repository at this point in the history
  • Loading branch information
KhaledNjim committed Aug 30, 2024
1 parent 0a74bef commit fe7c2f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions lib/pages/new_private_chat/widget/contact_status_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ class ContactStatusWidget extends StatelessWidget {
children: [
SvgPicture.asset(
ImagePaths.icStatus,
// ignore: deprecated_member_use
color: inactiveColor,
colorFilter: ColorFilter.mode(inactiveColor!, BlendMode.srcIn),
),
Text(
" ${L10n.of(context)!.inactive}",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ class ExpansionContactListTile extends StatelessWidget {
),
],
const SizedBox(width: 8.0),
if (contact.status == ContactStatus.inactive)
if (contact.status != null &&
contact.status == ContactStatus.inactive)
ContactStatusWidget(
status: contact.status!,
),
Expand Down

0 comments on commit fe7c2f9

Please sign in to comment.