Skip to content

Commit

Permalink
chore: Follow up presences
Browse files Browse the repository at this point in the history
  • Loading branch information
krille-chan committed Nov 11, 2023
1 parent bee9001 commit 59de9d2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/pages/user_bottom_sheet/user_bottom_sheet_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ class UserBottomSheetView extends StatelessWidget {
final lastActiveTimestamp = presence.lastActiveTimestamp;

return Row(
mainAxisSize: MainAxisSize.min,
children: [
Container(
width: 8,
Expand All @@ -64,13 +65,15 @@ class UserBottomSheetView extends StatelessWidget {
if (presence.currentlyActive == true)
Text(
L10n.of(context)!.currentlyActive,
overflow: TextOverflow.ellipsis,
style: Theme.of(context).textTheme.bodySmall,
),
if (lastActiveTimestamp != null)
)
else if (lastActiveTimestamp != null)
Text(
L10n.of(context)!.lastActiveAgo(
lastActiveTimestamp.localizedTimeShort(context),
),
overflow: TextOverflow.ellipsis,
style: Theme.of(context).textTheme.bodySmall,
),
],
Expand Down

0 comments on commit 59de9d2

Please sign in to comment.