Fix typing next position in all cases

This commit is contained in:
Neil Alexander 2020-12-14 16:59:27 +00:00
parent ebfa8d36c2
commit c7a9cee5cc
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -580,9 +580,9 @@ func (d *Database) addTypingDeltaToResponse(
jr = *types.NewJoinResponse()
}
jr.Ephemeral.Events = append(jr.Ephemeral.Events, ev)
res.NextBatch.TypingPosition++
res.Rooms.Join[roomID] = jr
}
res.NextBatch.TypingPosition = types.StreamPosition(d.EDUCache.GetLatestSyncPosition())
}
return nil
}