0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2025-02-19 18:20:19 +01:00

ircd:Ⓜ️:v1: Allow empty user_id argument to have a fallback.

This commit is contained in:
Jason Volk 2019-04-12 04:45:25 -07:00
parent eb33688bc1
commit e5b2700db3

View file

@ -1510,7 +1510,7 @@ ircd::m::v1::fetch_head(const id::room &room_id,
opts.remote = remote;
make_join request
{
room_id, user_id, buf, std::move(opts)
room_id, user_id?: m::me.user_id, buf, std::move(opts)
};
request.wait(milliseconds(fetch_head_timeout));