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:
parent
fa698123dc
commit
578a0e03fd
1 changed files with 3 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue