Is it possible use a result from a promise in a future call without saving it off to the functions scope?
The code below does not work because I am trying to use "room" that was returned from a promise in a future function call. Any help would be awesome!
validate(roomId, String(user._id))
.then( **room** => buildMsgPacket(room, msgRequest.msg, user) )
.then( msgPacket => addToFirebase(msgPacket) )
.then(() => notifyRecipents(**room**, msgPacket))