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:
parent
dc0fbe9e54
commit
85359d6662
1 changed files with 6 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue