Don't send push rules over and over again in incremental sync

This commit is contained in:
Neil Alexander 2021-01-13 13:13:00 +00:00
parent 11fc92398d
commit e2e4bb6874
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -82,11 +82,6 @@ func (p *AccountDataStreamProvider) IncrementalSync(
return from return from
} }
if len(dataTypes) == 0 {
// TODO: this fixes the sytest but is it the right thing to do?
dataTypes[""] = []string{"m.push_rules"}
}
// Iterate over the rooms // Iterate over the rooms
for roomID, dataTypes := range dataTypes { for roomID, dataTypes := range dataTypes {
// Request the missing data from the database // Request the missing data from the database