fix replying in subscriptions view

This commit is contained in:
Tom
2023-05-15 13:25:52 +02:00
parent dd93cc33da
commit d79e2ae71f
+4
View File
@@ -416,6 +416,7 @@ const Subscriptions = () => {
setIsReplyOpen(true); setIsReplyOpen(true);
setSelectedShortCid(thread.shortCid); setSelectedShortCid(thread.shortCid);
setSelectedParentCid(thread.cid); setSelectedParentCid(thread.cid);
setSelectedAddress(thread.subplebbitAddress);
}} title="Reply to this post">{thread.shortCid} }} title="Reply to this post">{thread.shortCid}
</Link> </Link>
&nbsp;p/ &nbsp;p/
@@ -544,6 +545,7 @@ const Subscriptions = () => {
setIsReplyOpen(true); setIsReplyOpen(true);
setSelectedShortCid(reply.shortCid); setSelectedShortCid(reply.shortCid);
setSelectedParentCid(reply.cid); setSelectedParentCid(reply.cid);
setSelectedAddress(thread.subplebbitAddress);
}} title="Reply to this post">{reply.shortCid}</Link> }} title="Reply to this post">{reply.shortCid}</Link>
) : ( ) : (
<span key="pending" style={{color: 'red', fontWeight: '700'}}>Pending</span> <span key="pending" style={{color: 'red', fontWeight: '700'}}>Pending</span>
@@ -761,6 +763,7 @@ const Subscriptions = () => {
setIsReplyOpen(true); setIsReplyOpen(true);
setSelectedShortCid(thread.shortCid); setSelectedShortCid(thread.shortCid);
setSelectedParentCid(thread.cid); setSelectedParentCid(thread.cid);
setSelectedAddress(thread.subplebbitAddress);
}} title="Reply to this post">{thread.shortCid} }} title="Reply to this post">{thread.shortCid}
</Link> </Link>
</span> </span>
@@ -927,6 +930,7 @@ const Subscriptions = () => {
setIsReplyOpen(true); setIsReplyOpen(true);
setSelectedShortCid(reply.shortCid); setSelectedShortCid(reply.shortCid);
setSelectedParentCid(reply.cid); setSelectedParentCid(reply.cid);
setSelectedAddress(thread.subplebbitAddress);
}} title="Reply to this post">{reply.shortCid} }} title="Reply to this post">{reply.shortCid}
</Link> </Link>
) : ( ) : (