mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 18:22:50 +01:00
modules/client/directory/room: Use more exact range on cache response.
This commit is contained in:
parent
eed18331cd
commit
b0730143d1
1 changed files with 1 additions and 2 deletions
|
@ -132,8 +132,7 @@ room_id__room_alias(const mutable_buffer &out,
|
|||
if(age > hours(72))
|
||||
return;
|
||||
|
||||
copy(out, room_id);
|
||||
ret = out;
|
||||
ret = string_view { data(out), copy(out, room_id) };
|
||||
}};
|
||||
|
||||
const m::room alias_room{alias_room_id};
|
||||
|
|
Loading…
Reference in a new issue