Эх сурвалжийг харах

Increment chunk num so backfill logs work correctly

Tulir Asokan 4 жил өмнө
parent
commit
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{}
 	before := ""
 	fromMe := true
-	chunkNum := 1
+	chunkNum := 0
 	for n > 0 {
+		chunkNum += 1
 		count := 50
 		if n < count {
 			count = n