v1.7.0/hbo notice for create

This commit is contained in:
2020-09-05 11:27:28 -04:00
parent 201283fc8f
commit 92df4a6275
+10 -13
View File
@@ -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: '<system>',
name: '',
text: `<Space> 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: '<system>',
name: 'GET UPDATE',
type: 'interactive/link',
endpoint: 'https://get.chromewatchparty.com/',
text: `If <Space> 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!' });
};