From 92df4a6275871bd1d8e53a78fc19418f65bb1997 Mon Sep 17 00:00:00 2001 From: Ayushya Amitabh Date: Sat, 5 Sep 2020 11:27:28 -0400 Subject: [PATCH] v1.7.0/hbo notice for create --- functions/modules/createRoom.js | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/functions/modules/createRoom.js b/functions/modules/createRoom.js index dc170ba..7b3e010 100644 --- a/functions/modules/createRoom.js +++ b/functions/modules/createRoom.js @@ -62,18 +62,15 @@ module.exports = async (req, res) => { err ); }); - if (bodydata.player.source === 'hbomax.' || bodydata.player.source === 'hbonow.') { - admin - .firestore() - .collection('rooms') - .doc(bodydata.partyName) - .collection('messages') - .add({ - uid: '', - name: '', - text: ` is accidentally toggling pause/play on HBO Now / Max. Fix will be available soon. Please consider using voice calls for the time being.`, - time: new Date(), - }); - } + if (bodydata.player.source === 'hbomax.' || bodydata.player.source === 'hbonow.') { + admin.firestore().collection('rooms').doc(bodydata.partyName).collection('messages').add({ + uid: '', + name: 'GET UPDATE', + type: 'interactive/link', + endpoint: 'https://get.chromewatchparty.com/', + text: `If is accidentally toggling pause/play on HBO Now / Max. Make sure you're on the latest version - try removing and re-adding if an update option is not visible.`, + time: new Date(), + }); + } res.status(201).send({ roomId: bodydata.partyName, message: 'Started a party!' }); };