fixed isFirstMessage, using angularFire