Fetch last 75 comments for livestreams
We only show 75 anyway...
This commit is contained in:
parent
09d8b38073
commit
b4da616176
1 changed files with 2 additions and 2 deletions
|
@ -17,7 +17,7 @@ type Props = {
|
||||||
embed?: boolean,
|
embed?: boolean,
|
||||||
doCommentSocketConnect: (string, string) => void,
|
doCommentSocketConnect: (string, string) => void,
|
||||||
doCommentSocketDisconnect: (string) => void,
|
doCommentSocketDisconnect: (string) => void,
|
||||||
doCommentList: (string) => void,
|
doCommentList: (string, number, number) => void,
|
||||||
comments: Array<Comment>,
|
comments: Array<Comment>,
|
||||||
fetchingComments: boolean,
|
fetchingComments: boolean,
|
||||||
doSuperChatList: (string) => void,
|
doSuperChatList: (string) => void,
|
||||||
|
@ -66,7 +66,7 @@ export default function LivestreamComments(props: Props) {
|
||||||
|
|
||||||
React.useEffect(() => {
|
React.useEffect(() => {
|
||||||
if (claimId) {
|
if (claimId) {
|
||||||
doCommentList(uri);
|
doCommentList(uri, 1, 75);
|
||||||
doSuperChatList(uri);
|
doSuperChatList(uri);
|
||||||
doCommentSocketConnect(uri, claimId);
|
doCommentSocketConnect(uri, claimId);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue