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

modules/s_fetch: Use better user_id param on headfill.

This commit is contained in:
Jason Volk 2019-04-12 12:32:19 -07:00
parent dc0fbe9e54
commit 85359d6662

View file

@ -192,8 +192,14 @@ void
IRCD_MODULE_EXPORT
ircd::m::fetch::headfill(const room &room)
{
const auto user_id
{
room.any_user(my_host(), "join")
};
m::feds::opts opts;
opts.room_id = room.room_id;
opts.user_id = user_id;
m::feds::head(opts, [&room]
(const auto &result)