0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-26 08:42:34 +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) ircd::m::my(const event &event)
{ {
const auto &origin(json::get<"origin"_>(event)); const auto &origin(json::get<"origin"_>(event));
const auto &sender(json::get<"sender"_>(event));
const auto &eid(event.event_id); const auto &eid(event.event_id);
return return
origin? origin?
my_host(origin): my_host(origin):
sender?
my_host(user::id(sender).host()):
eid? eid?
my(event::id(eid)): my(event::id(eid)):
false; false;