mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-03 04:03:09 -06:00
Refresh the notifier - I don't like this but for some reason tests aren't happy without it :/
This commit is contained in:
parent
de55581092
commit
8f1e01b2d6
|
|
@ -111,6 +111,12 @@ func (p *PresenceStreamProvider) populatePresence(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: This is expensive, why do we do this?
|
||||||
|
if err := p.notifier.Load(ctx, p.DB); err != nil {
|
||||||
|
req.Log.WithError(err).Error("unable to refresh notifier lists")
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
for _, presence := range presences {
|
for _, presence := range presences {
|
||||||
// Ignore users we don't share a room with
|
// Ignore users we don't share a room with
|
||||||
if req.Device.UserID != presence.UserID && !p.notifier.IsSharedUser(req.Device.UserID, presence.UserID) {
|
if req.Device.UserID != presence.UserID && !p.notifier.IsSharedUser(req.Device.UserID, presence.UserID) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue