mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 18:22:50 +01:00
ircd:Ⓜ️ Fix my(event) conditions regression.
This commit is contained in:
parent
91b0027751
commit
b9b3f9f00e
1 changed files with 3 additions and 0 deletions
|
@ -3947,10 +3947,13 @@ bool
|
|||
ircd::m::my(const event &event)
|
||||
{
|
||||
const auto &origin(json::get<"origin"_>(event));
|
||||
const auto &sender(json::get<"sender"_>(event));
|
||||
const auto &eid(event.event_id);
|
||||
return
|
||||
origin?
|
||||
my_host(origin):
|
||||
sender?
|
||||
my_host(user::id(sender).host()):
|
||||
eid?
|
||||
my(event::id(eid)):
|
||||
false;
|
||||
|
|
Loading…
Reference in a new issue