mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-26 00:03:09 -06:00
Don't return error if there's no work to do
This commit is contained in:
parent
199c5f3f88
commit
aa5c621397
|
|
@ -909,7 +909,7 @@ func (d *Database) SendToDeviceUpdatesForSync(
|
|||
|
||||
// If there's nothing to do then stop here.
|
||||
if len(events) == 0 {
|
||||
return 0, nil, fmt.Errorf("no send-to-device messages for user %q device %q in range %d -> %d", userID, deviceID, from, to)
|
||||
return 0, nil, nil
|
||||
}
|
||||
|
||||
// If we've advanced past this stream position for this
|
||||
|
|
|
|||
Loading…
Reference in a new issue