fix(anon mode): use a different address also per each thread created by the user

This commit is contained in:
plebeius.eth
2023-10-22 16:11:08 +02:00
parent 98065413c6
commit 5747b264bf
2 changed files with 12 additions and 0 deletions
+4
View File
@@ -461,6 +461,10 @@ const Board = () => {
const handleSubmit = async (event) => {
event.preventDefault();
if (anonymousMode) {
setSelectedThreadCid(index);
}
setPublishCommentOptions((prevPublishCommentOptions) => ({
...prevPublishCommentOptions,
author: {
+8
View File
@@ -1163,6 +1163,10 @@ const Catalog = () => {
const selectedThreadCidRef = useRef(null);
const virtuosoRef = useRef();
const setSelectedThreadCid = (cid) => {
selectedThreadCidRef.current = cid;
};
const navigate = useNavigate();
const [, setNewErrorMessage] = useError();
@@ -1333,6 +1337,10 @@ const Catalog = () => {
const handleSubmit = async (event) => {
event.preventDefault();
if (anonymousMode) {
setSelectedThreadCid(index);
}
setPublishCommentOptions((prevPublishCommentOptions) => ({
...prevPublishCommentOptions,
author: {