0
0
Fork 0
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:
Jason Volk 2018-03-01 04:47:14 -08:00
parent eed18331cd
commit b0730143d1

View file

@ -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};