v1.0.0-beta
This commit is contained in:
+2
-3
@@ -1,18 +1,17 @@
|
||||
import React from 'react';
|
||||
import { Typography } from '@material-ui/core';
|
||||
import './Thread.css';
|
||||
import firebase from 'firebase/app';
|
||||
import 'firebase/auth';
|
||||
|
||||
const Thread = (props) =>
|
||||
props.messages.map((m, midx) => {
|
||||
const userUid = window.localStorage.getItem('watchPartyUserUid');
|
||||
if (m.uid === '<system>') {
|
||||
return (
|
||||
<Typography variant="body2" className="thread-item system-message" key={m.id} disabled>
|
||||
{m.text}
|
||||
</Typography>
|
||||
);
|
||||
} else if (m.uid === firebase.auth().currentUser.uid) {
|
||||
} else if (m.uid === userUid) {
|
||||
return (
|
||||
<div
|
||||
className={`thread-item ${
|
||||
|
||||
Reference in New Issue
Block a user