mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 10:12:39 +01:00
modules/client/sync/to_device: Conditions to pass to_device '*'.
This commit is contained in:
parent
ad4f28a2ce
commit
c576c0765a
1 changed files with 2 additions and 2 deletions
|
@ -55,7 +55,7 @@ ircd::m::sync::to_device_linear(data &data)
|
|||
content.at("device_id")
|
||||
};
|
||||
|
||||
if(device_id != data.device_id)
|
||||
if(device_id != "*" && device_id != data.device_id)
|
||||
return false;
|
||||
|
||||
json::stack::array array
|
||||
|
@ -95,7 +95,7 @@ ircd::m::sync::to_device_polylog(data &data)
|
|||
content.at("device_id")
|
||||
};
|
||||
|
||||
if(device_id != data.device_id)
|
||||
if(device_id != "*" && device_id != data.device_id)
|
||||
return;
|
||||
|
||||
_to_device_append(data, content, array);
|
||||
|
|
Loading…
Reference in a new issue