Add Success field to V2InitialSyncComplete

This commit is contained in:
David Robertson 2023-09-06 11:15:06 +01:00
parent 7914980449
commit b6534aa45e
No known key found for this signature in database
GPG Key ID: 903ECE108A39DEDD
2 changed files with 3 additions and 0 deletions

View File

@ -90,6 +90,7 @@ func (*V2InviteRoom) Type() string { return "V2InviteRoom" }
type V2InitialSyncComplete struct {
UserID string
DeviceID string
Success bool
}
func (*V2InitialSyncComplete) Type() string { return "V2InitialSyncComplete" }

View File

@ -160,6 +160,7 @@ func (h *Handler) StartV2Pollers() {
h.v2Pub.Notify(pubsub.ChanV2, &pubsub.V2InitialSyncComplete{
UserID: t.UserID,
DeviceID: t.DeviceID,
Success: true,
})
}
}()
@ -568,6 +569,7 @@ func (h *Handler) EnsurePolling(p *pubsub.V3EnsurePolling) {
h.v2Pub.Notify(pubsub.ChanV2, &pubsub.V2InitialSyncComplete{
UserID: p.UserID,
DeviceID: p.DeviceID,
Success: true,
})
}()
}