added channel message list and form

This commit is contained in:
Ren Amamiya
2023-04-11 09:55:36 +07:00
parent 4e1dcdc2ce
commit b54cd34500
7 changed files with 198 additions and 34 deletions

View File

@@ -11,11 +11,10 @@ import { useEffect, useState } from 'react';
export default function ChatList() {
const router = useRouter();
const [list, setList] = useState([]);
const [activeAccount]: any = useLocalStorage('activeAccount');
const accountProfile = JSON.parse(activeAccount.metadata);
const [list, setList] = useState([]);
const openSelfChat = () => {
router.push({
pathname: '/chats/[pubkey]',