mirror of
https://github.com/hoernschen/dendrite.git
synced 2024-12-27 07:28:27 +00:00
Ensure we wake for our own device list updates (#1661)
* Make sure we wake up for our own key changes * Whitelist 'Users receive device_list updates for their own devices'
This commit is contained in:
parent
fac71edc62
commit
4fe4c180e6
2 changed files with 3 additions and 1 deletions
|
@ -112,7 +112,8 @@ func (s *OutputKeyChangeEventConsumer) onMessage(msg *sarama.ConsumerMessage) er
|
||||||
log.WithError(err).Error("syncapi: failed to QuerySharedUsers for key change event from key server")
|
log.WithError(err).Error("syncapi: failed to QuerySharedUsers for key change event from key server")
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
// TODO: f.e queryRes.UserIDsToCount : notify users by waking up streams
|
// make sure we get our own key updates too!
|
||||||
|
queryRes.UserIDsToCount[output.UserID] = 1
|
||||||
posUpdate := types.StreamingToken{
|
posUpdate := types.StreamingToken{
|
||||||
DeviceListPosition: types.LogPosition{
|
DeviceListPosition: types.LogPosition{
|
||||||
Offset: msg.Offset,
|
Offset: msg.Offset,
|
||||||
|
|
|
@ -500,3 +500,4 @@ Can forget room you've been kicked from
|
||||||
/whois
|
/whois
|
||||||
/joined_members return joined members
|
/joined_members return joined members
|
||||||
A next_batch token can be used in the v1 messages API
|
A next_batch token can be used in the v1 messages API
|
||||||
|
Users receive device_list updates for their own devices
|
||||||
|
|
Loading…
Reference in a new issue