v1.6.0/updateplayer name fix
This commit is contained in:
+1
-1
@@ -208,7 +208,7 @@ export default class Chat extends Component {
|
|||||||
const { status, showName, time, source, element, showChanged } = video;
|
const { status, showName, time, source, element, showChanged } = video;
|
||||||
if (element) {
|
if (element) {
|
||||||
UpdatePlayerApi({
|
UpdatePlayerApi({
|
||||||
roomId: LocalData().partyName,
|
roomId: LocalData().partyName || this.state.name,
|
||||||
showChanged,
|
showChanged,
|
||||||
userName: LocalData().userName,
|
userName: LocalData().userName,
|
||||||
player: {
|
player: {
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ module.exports = async (req, res) => {
|
|||||||
// player.time > 3600
|
// player.time > 3600
|
||||||
// ? new Date(player.time * 1000).toISOString().substr(11, 8)
|
// ? new Date(player.time * 1000).toISOString().substr(11, 8)
|
||||||
// : new Date(player.time * 1000).toISOString().substr(14, 5);
|
// : new Date(player.time * 1000).toISOString().substr(14, 5);
|
||||||
|
if (!roomId) return res.status(400).send({ message: 'Party name not sent.' });
|
||||||
const [roomExists, roomData] = await admin
|
const [roomExists, roomData] = await admin
|
||||||
.firestore()
|
.firestore()
|
||||||
.collection('rooms')
|
.collection('rooms')
|
||||||
|
|||||||
Reference in New Issue
Block a user