0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 18:22:50 +01:00

modules/client/rooms/events: Prevent EDU's from being sent to client here.

This commit is contained in:
Jason Volk 2019-09-19 10:11:25 -07:00
parent fa698123dc
commit 578a0e03fd

View file

@ -274,7 +274,7 @@ notified
void
handle_notify(const m::event &event,
m::vm::eval &)
m::vm::eval &eval)
try
{
const auto &room_id
@ -282,7 +282,8 @@ try
json::get<"room_id"_>(event)
};
if(!room_id)
// Prevent EDU's from notifying
if(!event.event_id || !room_id)
return;
for(auto &waiter : clients)