0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-10 14:08:56 +02:00

modules/console: Use throwing query for room_id(event_id) so grammar error never occurs. (fixes #135)

This commit is contained in:
Jason Volk 2020-05-11 03:36:58 -07:00
parent b7d8f9c211
commit 613464c476

View file

@ -12791,7 +12791,7 @@ console_cmd__feds__event(opt &out, const string_view &line)
room_id = m::room_id(param["room_id"]);
if(!room_id)
room_id = m::get(std::nothrow, event_id, "room_id", room_id);
room_id = m::room_id(event_id);
if(!room_id)
{