See my note on the conversation tab. You can simplify the logic you have below to make it cleaner.