Merge branch 'main' into choreographer-refactor
This commit is contained in:
commit
9ce99daac9
3 changed files with 7 additions and 3 deletions
|
|
@ -17,6 +17,7 @@ class ActivityPlanModel {
|
|||
final DateTime? endAt;
|
||||
final Duration? duration;
|
||||
final Map<String, ActivityRole>? _roles;
|
||||
final bool isDeprecatedModel;
|
||||
|
||||
ActivityPlanModel({
|
||||
required this.req,
|
||||
|
|
@ -32,6 +33,7 @@ class ActivityPlanModel {
|
|||
String? imageURL,
|
||||
this.endAt,
|
||||
this.duration,
|
||||
this.isDeprecatedModel = false,
|
||||
}) : description = (description == null || description.isEmpty)
|
||||
? learningObjective
|
||||
: description,
|
||||
|
|
@ -96,6 +98,7 @@ class ActivityPlanModel {
|
|||
: null,
|
||||
roles: roles,
|
||||
activityId: activityId,
|
||||
isDeprecatedModel: json["bookmark_id"] != null,
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -397,8 +397,9 @@ extension ActivityRoomExtension on Room {
|
|||
// helper functions for activity state for overall activity
|
||||
|
||||
bool get isActivitySession =>
|
||||
roomType?.startsWith(PangeaRoomTypes.activitySession) == true ||
|
||||
activityPlan != null;
|
||||
(roomType?.startsWith(PangeaRoomTypes.activitySession) == true ||
|
||||
activityPlan != null) &&
|
||||
activityPlan?.isDeprecatedModel == false;
|
||||
|
||||
String? get activityId {
|
||||
if (!isActivitySession) return null;
|
||||
|
|
|
|||
|
|
@ -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.14+3
|
||||
version: 4.1.15+2
|
||||
|
||||
environment:
|
||||
sdk: ">=3.0.0 <4.0.0"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue