v1.0.1 add giphy, add link to crx

This commit is contained in:
Ayushya Amitabh
2020-04-24 13:52:16 -04:00
parent fd6b8275b0
commit e6ea70e134
9 changed files with 359 additions and 25 deletions
+2 -1
View File
@@ -222,7 +222,7 @@ const joinRoom = async (req, res) => {
};
const sendMessage = async (req, res) => {
const { name, text, time, uid, roomId } = JSON.parse(req.body);
const { name, text, time, uid, roomId, type } = JSON.parse(req.body);
const roomExists = await admin
.firestore()
@@ -241,6 +241,7 @@ const sendMessage = async (req, res) => {
text,
time,
uid,
type,
})
.catch((err) => {
console.error(`Failed to send message to party : \n\t Room: ${roomId} \n\t ${uid}`, err);