From 298b59b549be6253b3453143054b47b2b7b1c6a7 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Wed, 27 Apr 2022 11:46:02 +0100 Subject: [PATCH] Fix global account data --- syncapi/streams/stream_accountdata.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syncapi/streams/stream_accountdata.go b/syncapi/streams/stream_accountdata.go index 2a4ab4b0f..2cddbcf04 100644 --- a/syncapi/streams/stream_accountdata.go +++ b/syncapi/streams/stream_accountdata.go @@ -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 }