adding time sync

This commit is contained in:
Ayushya Amitabh
2020-04-28 21:20:14 -04:00
parent bab143ace0
commit a169fde183
9 changed files with 97 additions and 9 deletions
+5 -2
View File
@@ -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