v1.6.0/brand new chat ui
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
const admin = require('firebase-admin');
|
||||
|
||||
module.exports = async (req, res) => {
|
||||
const { name, text, uid, roomId, type } = JSON.parse(req.body);
|
||||
const { name, text, uid, roomId, type, replyTo } = JSON.parse(req.body);
|
||||
|
||||
const roomExists = await admin
|
||||
.firestore()
|
||||
@@ -21,6 +21,7 @@ module.exports = async (req, res) => {
|
||||
time: new Date(),
|
||||
uid,
|
||||
type: type || '',
|
||||
replyTo: replyTo || null,
|
||||
})
|
||||
.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