Fix global account data

This commit is contained in:
Neil Alexander 2022-04-27 11:46:02 +01:00
parent 5503d27640
commit 298b59b549
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -55,7 +55,7 @@ func (p *AccountDataStreamProvider) IncrementalSync(
for roomID, dataTypes := range dataTypes {
// For a complete sync, make sure we're only including this room if
// that room was present in the joined rooms.
if from == 0 && !req.IsRoomPresent(roomID) {
if from == 0 && roomID != "" && !req.IsRoomPresent(roomID) {
continue
}