adding time sync
This commit is contained in:
+5
-2
@@ -115,6 +115,7 @@ export default class Chat extends Component {
|
||||
showName,
|
||||
time,
|
||||
source,
|
||||
updatedBy: window.localStorage.getItem('watchPartyUserUid'),
|
||||
},
|
||||
}).catch((err) => {
|
||||
this.props.updateLoading(false);
|
||||
@@ -235,13 +236,15 @@ export default class Chat extends Component {
|
||||
</Button>
|
||||
{admin && (
|
||||
<Button onClick={this.endParty} startIcon={<Delete />}>
|
||||
<span className="party-control-button-text">End Party</span>
|
||||
{/* <span className="party-control-button-text">End Party</span> */}
|
||||
</Button>
|
||||
)}
|
||||
</ButtonGroup>
|
||||
</div>
|
||||
<div className="thread-container">
|
||||
<Thread messages={messages} />
|
||||
<Thread
|
||||
messages={messages.sort((a, b) => new Date(b).getTime() - new Date(a).getTime())}
|
||||
/>
|
||||
</div>
|
||||
<TextField
|
||||
multiline
|
||||
|
||||
Reference in New Issue
Block a user