TEMP fix for question not being intransitory

This commit is contained in:
Gordon Pedersen 2024-04-22 09:40:36 +10:00
parent 2f152a656e
commit dcf599bf1e

View file

@ -154,9 +154,9 @@ public class ActivityStore {
if (newActivity is IntransitiveActivity) {
// intransitive activities go here
IntransitiveActivity activity = (IntransitiveActivity)newActivity;
if (activity is Question) return Question((Question)activity);
else if (activity is Arrive) return Arrive((Arrive)activity);
if (activity is Arrive) return Arrive((Arrive)activity);
else if (activity is Travel) return Travel((Travel)activity);
// else if (activity is Question) return Question((Question)activity); // TODO: Temporary until question is intransitory again
else throw new InvalidOperationException($"Activity type '{activity.Type?.FirstOrDefault()}' is unrecognized");
}
@ -188,6 +188,7 @@ public class ActivityStore {
else if (activity is TentativeReject) return TentativeReject((TentativeReject)activity);
else if (activity is TentativeAccept) return TentativeAccept((TentativeAccept)activity);
else if (activity is View) return View((View)activity);
else if (activity is Question) return Question((Question)activity); // TODO: Temporary until question is intransitory again
else throw new InvalidOperationException($"Activity type '{activity.Type?.FirstOrDefault()}' is unrecognized");
}
}