diff --git a/functions/modules/createRoom.js b/functions/modules/createRoom.js index 4b0e90a..2a9b22c 100644 --- a/functions/modules/createRoom.js +++ b/functions/modules/createRoom.js @@ -62,39 +62,5 @@ module.exports = async (req, res) => { err ); }); - if (bodydata.player && bodydata.player.source === 'amazon.') { - await admin - .firestore() - .collection('rooms') - .doc(bodydata.partyName) - .collection('messages') - .add({ - uid: '', - name: 'Update to V1.6.1', - endpoint: 'https://get.chromewatchparty.com', - type: 'interactive/link', - text: `If Watch Party doesn't work make sure you're on V1.6.1. Try removing and re-adding if an update option is not visible`, - time: new Date(), - }) - .catch((err) => { - console.error(`Failed to add amazon error message : \n\t Room: ${bodydata.partyName}`, err); - }); - } - if (bodydata.player && bodydata.player.source === 'hulu.') { - await admin - .firestore() - .collection('rooms') - .doc(bodydata.partyName) - .collection('messages') - .add({ - uid: '', - name: '', - text: `Watch Party may not work temporarily. An update is coming to fix this.`, - time: new Date(), - }) - .catch((err) => { - console.error(`Failed to add amazon error message : \n\t Room: ${bodydata.partyName}`, err); - }); - } res.status(201).send({ roomId: bodydata.partyName, message: 'Started a party!' }); };