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

ircd:Ⓜ️ Fix my(event) conditions regression.

This commit is contained in:
Jason Volk 2019-07-13 20:01:47 -07:00
parent 91b0027751
commit b9b3f9f00e

View file

@ -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;