fix: update isActivityStarted to rely on assignedRoles instead of directly using state event (#4382)

This commit is contained in:
ggurdin 2025-10-14 14:09:10 -04:00 committed by GitHub
parent c34b7db20c
commit 2586ae5442
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -408,8 +408,7 @@ extension ActivityRoomExtension on Room {
}
bool get isActivityStarted =>
(activityPlan?.roles.length ?? 0) - (activityRoles?.roles.length ?? 0) <=
0;
(activityPlan?.roles.length ?? 0) - (assignedRoles?.length ?? 0) <= 0;
bool get isActivityFinished {
final roles = activityRoles?.roles.values.where(