fixed chats not loading

This commit is contained in:
Carter 2026-02-25 11:05:52 -06:00
parent 98d87ed8f7
commit c33ce3d03a
4 changed files with 19 additions and 21 deletions

View file

@ -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) {