v1.0.1 add giphy, add link to crx
This commit is contained in:
+2
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user