0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-28 00:14:07 +01:00

modules/client/sync/account_data: Ignore proffered events without an event_idx.

This commit is contained in:
Jason Volk 2019-02-27 16:30:43 -08:00
parent 9f7a08e9da
commit 2c239858cb

View file

@ -34,8 +34,10 @@ ircd::m::sync::account_data
bool
ircd::m::sync::account_data_linear(data &data)
{
if(!data.event_idx)
return false;
assert(data.event);
assert(data.event_idx);
json::stack::array array
{
*data.out, "events"