mirror of
https://github.com/matrix-construct/construct
synced 2024-11-16 15:00:51 +01:00
modules/client/sync/account_data: Ignore proffered events without an event_idx.
This commit is contained in:
parent
9f7a08e9da
commit
2c239858cb
1 changed files with 3 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue