Update Terminal.tsx

This commit is contained in:
talksik
2022-05-29 14:06:02 -05:00
parent b77782936c
commit 026e5726e2
@@ -209,6 +209,8 @@ export function TerminalProvider({ children }: { children?: React.ReactNode }) {
);
// fetch conversations
// TODO: put members map in another collection to avoid all of the re-renders for all folks...
// duplicate data for better reads
useEffect(() => {
const unsub = onSnapshot(getConversationsQueryLIVE(user.uid), (querySnapshot) => {
const conversations = querySnapshot.docs.map((doc) => doc.data());