mirror of
https://github.com/matrix-org/sliding-sync.git
synced 2025-03-10 13:37:11 +00:00
Emit a User and DeviceID in txn message
This commit is contained in:
parent
ff02c4c79a
commit
6a951908af
@ -44,6 +44,8 @@ func (*V2Accumulate) Type() string { return "V2Accumulate" }
|
||||
// V2TransactionID is emitted by a poller when it sees an event with a transaction ID.
|
||||
type V2TransactionID struct {
|
||||
EventID string
|
||||
UserID string
|
||||
DeviceID string
|
||||
TransactionID string
|
||||
NID int64
|
||||
}
|
||||
|
@ -290,6 +290,8 @@ func (h *Handler) Accumulate(ctx context.Context, userID, deviceID, roomID, prev
|
||||
|
||||
h.v2Pub.Notify(pubsub.ChanV2, &pubsub.V2TransactionID{
|
||||
EventID: eventID,
|
||||
UserID: userID,
|
||||
DeviceID: deviceID,
|
||||
TransactionID: txnID,
|
||||
NID: nid,
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user