(feat): add cache for conversations and communities
(feat): conversations now get moved to the top when engaged with (qol): update todo
This commit is contained in:
parent
006c222cc5
commit
fd15215f15
14 changed files with 178 additions and 67 deletions
|
|
@ -10,6 +10,7 @@ import { useTTP } from "@tensamin/ttp";
|
|||
import { log, toast } from "@tensamin/shared/log";
|
||||
import { cn, useIsMobile } from "@tensamin/ui";
|
||||
import { encryptText } from "@tensamin/crypto/worker";
|
||||
import { useSession } from "@tensamin/storage/session";
|
||||
|
||||
export default function InputComponent({
|
||||
value,
|
||||
|
|
@ -23,6 +24,7 @@ export default function InputComponent({
|
|||
const { send } = useTTP();
|
||||
const { addLiveMessage, sharedSecret, userId, inputBoxRef } = useChat();
|
||||
const { load } = useStorage();
|
||||
const { moveUserIdToTop } = useSession();
|
||||
|
||||
React.useEffect(() => {
|
||||
void load("settings.reverse_enter_behavior").then((shouldInvert) => {
|
||||
|
|
@ -78,6 +80,8 @@ export default function InputComponent({
|
|||
toast("error", "Failed to send message");
|
||||
});
|
||||
|
||||
moveUserIdToTop(userId);
|
||||
|
||||
setValue("");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue