forked from MirrorHub/mautrix-whatsapp
Increment chunk num so backfill logs work correctly
This commit is contained in:
parent
9b25e26b04
commit
e9e623abf6
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue