mirror of
https://github.com/tulir/mautrix-whatsapp
synced 2024-12-14 01:14:29 +01:00
Send backfilling bridge state again
This commit is contained in:
parent
01c1648c07
commit
53eac40711
1 changed files with 4 additions and 0 deletions
|
@ -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})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue