There's an `isTemporary()` function on the model now, you should use that and update the logic there for what constitutes as temporary (until it's done on the server side).