Skip to content

Commit

Permalink
fixup! fixup! TW-578: improve sync room status
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian KOUNE committed Oct 6, 2023
1 parent 484bb62 commit 27be349
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/utils/room_status_extension.dart
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ extension RoomStatusExtension on Room {
if (lastActiveDateTime != null) {
if (lastActiveDateTime.isLessThanOneHourAgo()) {
return L10n.of(context)!.onlineMinAgo(
currentDateTime.difference(lastActiveDateTime).inMinutes);
currentDateTime.difference(lastActiveDateTime).inMinutes,
);
} else if (lastActiveDateTime.isLessThanTenHoursAgo()) {
final timeOffline = currentDateTime.difference(lastActiveDateTime);
return L10n.of(context)!.onlineHourAgo(
Expand Down

0 comments on commit 27be349

Please sign in to comment.