mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-26 08:13:09 -06:00
Add some more wakeups
This commit is contained in:
parent
2eb4efca44
commit
af332f24ae
|
|
@ -97,13 +97,7 @@ func (s *OutputSendToDeviceEventConsumer) onMessage(msg *sarama.ConsumerMessage)
|
|||
return err
|
||||
}
|
||||
|
||||
//s.notifier.OnNewSendToDevice(
|
||||
// output.UserID,
|
||||
// []string{output.DeviceID},
|
||||
// types.StreamingToken{SendToDevicePosition: streamPos},
|
||||
//)
|
||||
|
||||
_ = streamPos
|
||||
s.db.SendToDeviceStream().Advance(streamPos)
|
||||
|
||||
return nil
|
||||
}
|
||||
|
|
|
|||
|
|
@ -110,14 +110,12 @@ func (s *OutputKeyChangeEventConsumer) onMessage(msg *sarama.ConsumerMessage) er
|
|||
}
|
||||
// make sure we get our own key updates too!
|
||||
queryRes.UserIDsToCount[output.UserID] = 1
|
||||
posUpdate := types.StreamingToken{
|
||||
DeviceListPosition: types.LogPosition{
|
||||
Offset: msg.Offset,
|
||||
Partition: msg.Partition,
|
||||
},
|
||||
posUpdate := types.LogPosition{
|
||||
Offset: msg.Offset,
|
||||
Partition: msg.Partition,
|
||||
}
|
||||
|
||||
_ = posUpdate
|
||||
s.db.DeviceListStream().Advance(posUpdate)
|
||||
|
||||
//for userID := range queryRes.UserIDsToCount {
|
||||
// s.notifier.OnNewKeyChange(posUpdate, userID, output.UserID)
|
||||
|
|
|
|||
|
|
@ -271,8 +271,8 @@ func (s *OutputRoomEventConsumer) onNewInviteEvent(
|
|||
return nil
|
||||
}
|
||||
|
||||
_ = pduPos
|
||||
//s.notifier.OnNewInvite(types.StreamingToken{InvitePosition: pduPos}, *msg.Event.StateKey())
|
||||
s.db.InviteStream().Advance(pduPos)
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
@ -291,8 +291,8 @@ func (s *OutputRoomEventConsumer) onRetireInviteEvent(
|
|||
// Notify any active sync requests that the invite has been retired.
|
||||
// Invites share the same stream counter as PDUs
|
||||
|
||||
_ = pduPos
|
||||
//s.notifier.OnNewInvite(types.StreamingToken{InvitePosition: pduPos}, msg.TargetUserID)
|
||||
s.db.InviteStream().Advance(pduPos)
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue