Merge pull request #4588 from pangeachat/merge-prod-into-main
Merge prod into main
This commit is contained in:
commit
beee910448
3 changed files with 11 additions and 9 deletions
|
|
@ -1,8 +1,7 @@
|
|||
import 'package:flutter/foundation.dart';
|
||||
|
||||
import 'package:fluffychat/pangea/activity_planner/activity_plan_request.dart';
|
||||
import 'package:fluffychat/pangea/common/config/environment.dart';
|
||||
import 'package:fluffychat/pangea/common/constants/model_keys.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
|
||||
class ActivityPlanModel {
|
||||
final String activityId;
|
||||
|
|
@ -17,6 +16,7 @@ class ActivityPlanModel {
|
|||
final DateTime? endAt;
|
||||
final Duration? duration;
|
||||
final Map<String, ActivityRole>? _roles;
|
||||
final bool isDeprecatedModel;
|
||||
|
||||
ActivityPlanModel({
|
||||
required this.req,
|
||||
|
|
@ -32,6 +32,7 @@ class ActivityPlanModel {
|
|||
String? imageURL,
|
||||
this.endAt,
|
||||
this.duration,
|
||||
this.isDeprecatedModel = false,
|
||||
}) : description = (description == null || description.isEmpty)
|
||||
? learningObjective
|
||||
: description,
|
||||
|
|
@ -96,6 +97,7 @@ class ActivityPlanModel {
|
|||
: null,
|
||||
roles: roles,
|
||||
activityId: activityId,
|
||||
isDeprecatedModel: json["bookmark_id"] != null,
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,10 +1,6 @@
|
|||
import 'dart:math';
|
||||
|
||||
import 'package:flutter/foundation.dart';
|
||||
|
||||
import 'package:collection/collection.dart';
|
||||
import 'package:matrix/matrix.dart';
|
||||
|
||||
import 'package:fluffychat/pangea/activity_planner/activity_plan_model.dart';
|
||||
import 'package:fluffychat/pangea/activity_sessions/activity_role_model.dart';
|
||||
import 'package:fluffychat/pangea/activity_sessions/activity_roles_model.dart';
|
||||
|
|
@ -23,6 +19,9 @@ import 'package:fluffychat/pangea/events/constants/pangea_event_types.dart';
|
|||
import 'package:fluffychat/pangea/events/event_wrappers/pangea_message_event.dart';
|
||||
import 'package:fluffychat/pangea/extensions/pangea_room_extension.dart';
|
||||
import 'package:fluffychat/widgets/matrix.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:matrix/matrix.dart';
|
||||
|
||||
import '../activity_summary/activity_summary_repo.dart';
|
||||
|
||||
class RoleException implements Exception {
|
||||
|
|
@ -397,8 +396,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+1
|
||||
|
||||
environment:
|
||||
sdk: ">=3.0.0 <4.0.0"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue