v1.5.1/chip fix

This commit is contained in:
2020-07-25 19:30:57 -04:00
parent 6f7a8c0f6f
commit 1e2386713e
4 changed files with 54 additions and 35 deletions
+17
View File
@@ -46,6 +46,23 @@ module.exports = async (req, res) => {
err
);
});
await admin
.firestore()
.collection('rooms')
.doc(bodydata.partyName)
.collection('messages')
.add({
uid: '<system>',
name: '',
text: `Voice calls are unavailable temporarily.`,
time: new Date(),
})
.catch((err) => {
console.error(
`Failed to add system voice call message : \n\t Room: ${bodydata.partyName}`,
err
);
});
await admin
.firestore()
.collection('rooms')