fixed chats not loading
This commit is contained in:
parent
98d87ed8f7
commit
c33ce3d03a
4 changed files with 19 additions and 21 deletions
|
|
@ -12,7 +12,7 @@ import { useTeamAPI } from "providers";
|
|||
import { cloneDeep } from "lodash";
|
||||
|
||||
|
||||
const useStyles = makeStyles((theme: Theme) => ({
|
||||
const useStyles = makeStyles<Theme>((theme: Theme) => ({
|
||||
button: {
|
||||
color: getSignatureAccentColour(),
|
||||
width: theme.spacing(6),
|
||||
|
|
@ -70,8 +70,8 @@ export default function HeaderButtons(props: Props) {
|
|||
setHasNewChats(true);
|
||||
return;
|
||||
}
|
||||
console.log(team.preferences.chatViewedTimestamp)
|
||||
console.log(team.settings.lastChatTimestamp)
|
||||
// console.log(team.preferences.chatViewedTimestamp)
|
||||
// console.log(team.settings.lastChatTimestamp)
|
||||
let viewMoment = moment(team.preferences.chatViewedTimestamp);
|
||||
let chatMoment = moment(team.settings.lastChatTimestamp);
|
||||
if (viewMoment.diff(chatMoment) < 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue