Fix continuous reaction fetch in incognito

myReactions will never be filled in incognito. Also, it's probably enough to just check othersReactions, but for now, still do both when logged in.
This commit is contained in:
infinite-persistence 2021-07-15 09:57:55 +08:00
parent d612b86a8c
commit ff059c58fd
No known key found for this signature in database
GPG key ID: B9C3252EDC3D0AA0

View file

@ -130,7 +130,7 @@ function CommentList(props: Props) {
} else {
idsForReactionFetch = allCommentIds.filter((commentId) => {
const key = activeChannelId ? `${commentId}:${activeChannelId}` : commentId;
return !othersReactsById[key] || !myReactsByCommentId[key];
return !othersReactsById[key] || (activeChannelId && !myReactsByCommentId[key]);
});
}