Merge pull request #5379 from pangeachat/activity-state-view-fixes

fix: consider an activity active for a user only if they haven't comp…
This commit is contained in:
ggurdin 2026-01-23 11:52:34 -05:00 committed by GitHub
commit 995c8a6e71
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 4 deletions

View file

@ -64,7 +64,9 @@ class ActivityStatsMenu extends StatelessWidget {
final isColumnMode = FluffyThemes.isColumnMode(context);
// Completion status variables
final bool userComplete = controller.room.hasCompletedRole;
final bool userComplete =
controller.room.hasPickedRole && controller.room.hasCompletedRole;
final bool activityComplete = controller.room.isActivityFinished;
bool shouldShowEndForAll = true;
bool shouldShowImDone = true;
@ -160,7 +162,7 @@ class ActivityStatsMenu extends StatelessWidget {
),
],
),
if (!userComplete) ...[
if (!userComplete && (shouldShowImDone || shouldShowEndForAll)) ...[
Text(
L10n.of(context).activityDropdownDesc,
textAlign: TextAlign.center,

View file

@ -31,7 +31,8 @@ extension CoursePlanRoomExtension on Room {
final room = client.getRoomById(child.roomId!);
if (room?.membership == Membership.join &&
room?.activityId == activityId &&
!room!.hasArchivedActivity) {
room!.hasPickedRole &&
!room.hasCompletedRole) {
return room.id;
}
}

View file

@ -6,7 +6,7 @@ description: Learn a language while texting your friends.
# Pangea#
publish_to: none
# On version bump also increase the build number for F-Droid
version: 4.1.16+4
version: 4.1.16+5
environment:
sdk: ">=3.0.0 <4.0.0"