I don't know if you have downloaded the 2.1 version yet but if you haven't, here's what to do. Yes indeed you have to do some things before the secret room scene. The second good ending is actually for Riley and to get there you should not change the topic when Riley flirts with you. (Just don't click the "Change the topic" option the other two are fine) then you must ask him about the locked room before checking the room out by yourself.
This still works for the 1.0 version btw. Have fun!