mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-26 08:13:09 -06:00
Tweaks
This commit is contained in:
parent
e91d71ebca
commit
0aa91059a9
|
|
@ -121,8 +121,5 @@ func (s *OutputKeyChangeEventConsumer) onMessage(msg *sarama.ConsumerMessage) er
|
||||||
|
|
||||||
s.streams.DeviceListStreamProvider.Advance(posUpdate)
|
s.streams.DeviceListStreamProvider.Advance(posUpdate)
|
||||||
|
|
||||||
//for userID := range queryRes.UserIDsToCount {
|
|
||||||
// s.notifier.OnNewKeyChange(posUpdate, userID, output.UserID)
|
|
||||||
//}
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -292,9 +292,9 @@ func (s *OutputRoomEventConsumer) onRetireInviteEvent(
|
||||||
}).Panicf("roomserver output log: remove invite failure")
|
}).Panicf("roomserver output log: remove invite failure")
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// Notify any active sync requests that the invite has been retired.
|
// Notify any active sync requests that the invite has been retired.
|
||||||
// Invites share the same stream counter as PDUs
|
// Invites share the same stream counter as PDUs
|
||||||
|
|
||||||
s.streams.InviteStreamProvider.Advance(pduPos)
|
s.streams.InviteStreamProvider.Advance(pduPos)
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
|
@ -311,12 +311,12 @@ func (s *OutputRoomEventConsumer) onNewPeek(
|
||||||
}).Panicf("roomserver output log: write peek failure")
|
}).Panicf("roomserver output log: write peek failure")
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// tell the notifier about the new peek so it knows to wake up new devices
|
// tell the notifier about the new peek so it knows to wake up new devices
|
||||||
//s.notifier.OnNewPeek(msg.RoomID, msg.UserID, msg.DeviceID)
|
// TODO: This only works because the peeks table is reusing the same
|
||||||
_ = sp
|
// index as PDUs, but we should fix this
|
||||||
// we need to wake up the users who might need to now be peeking into this room,
|
s.streams.PDUStreamProvider.Advance(sp)
|
||||||
// so we send in a dummy event to trigger a wakeup
|
|
||||||
//s.notifier.OnNewEvent(nil, msg.RoomID, nil, types.StreamingToken{PDUPosition: sp})
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -331,12 +331,12 @@ func (s *OutputRoomEventConsumer) onRetirePeek(
|
||||||
}).Panicf("roomserver output log: write peek failure")
|
}).Panicf("roomserver output log: write peek failure")
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// tell the notifier about the new peek so it knows to wake up new devices
|
// tell the notifier about the new peek so it knows to wake up new devices
|
||||||
//s.notifier.OnRetirePeek(msg.RoomID, msg.UserID, msg.DeviceID)
|
// TODO: This only works because the peeks table is reusing the same
|
||||||
_ = sp
|
// index as PDUs, but we should fix this
|
||||||
// we need to wake up the users who might need to now be peeking into this room,
|
s.streams.PDUStreamProvider.Advance(sp)
|
||||||
// so we send in a dummy event to trigger a wakeup
|
|
||||||
//s.notifier.OnNewEvent(nil, msg.RoomID, nil, types.StreamingToken{PDUPosition: sp})
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue