fix: don't label room as activity room if activityID is null (#5480)
This commit is contained in:
parent
fc277350f5
commit
aae00cd1d6
1 changed files with 2 additions and 1 deletions
|
|
@ -353,7 +353,8 @@ extension ActivityRoomExtension on Room {
|
|||
bool get isActivitySession =>
|
||||
(roomType?.startsWith(PangeaRoomTypes.activitySession) == true ||
|
||||
activityPlan != null) &&
|
||||
activityPlan?.isDeprecatedModel == false;
|
||||
activityPlan?.isDeprecatedModel == false &&
|
||||
activityPlan?.activityId != null;
|
||||
|
||||
String? get activityId {
|
||||
if (!isActivitySession) return null;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue