TEMP fix for question not being intransitory
This commit is contained in:
parent
2f152a656e
commit
dcf599bf1e
1 changed files with 3 additions and 2 deletions
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue