소스 검색

Increment chunk num so backfill logs work correctly

Tulir Asokan 4 년 전
부모
커밋
e9e623abf6
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      portal.go

+ 2 - 1
portal.go

@@ -893,8 +893,9 @@ func (portal *Portal) FillInitialHistory(user *User) error {
 	var messages []interface{}
 	var messages []interface{}
 	before := ""
 	before := ""
 	fromMe := true
 	fromMe := true
-	chunkNum := 1
+	chunkNum := 0
 	for n > 0 {
 	for n > 0 {
+		chunkNum += 1
 		count := 50
 		count := 50
 		if n < count {
 		if n < count {
 			count = n
 			count = n