mirror of
https://github.com/matrix-org/sliding-sync.git
synced 2025-03-10 13:37:11 +00:00
Add Success field to V2InitialSyncComplete
This commit is contained in:
parent
7914980449
commit
b6534aa45e
@ -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" }
|
||||
|
@ -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,
|
||||
})
|
||||
}()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user