Send backfilling bridge state again

This commit is contained in:
Tulir Asokan 2021-11-08 22:56:34 +02:00
parent 01c1648c07
commit 53eac40711

View file

@ -61,7 +61,11 @@ func (c conversationList) Swap(i, j int) {
func (user *User) handleHistorySyncsLoop() {
for evt := range user.historySyncs {
go user.sendBridgeState(BridgeState{StateEvent: StateBackfilling})
user.handleHistorySync(evt.Data)
if len(user.historySyncs) == 0 && user.IsConnected() {
go user.sendBridgeState(BridgeState{StateEvent: StateConnected})
}
}
}