0
0
Fork 0
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:
Jason Volk 2020-04-16 15:56:48 -07:00
parent ad4f28a2ce
commit c576c0765a

View file

@ -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);