Fix showing reply to on download squeak (#1117)

This commit is contained in:
Jonathan Zernik 2021-08-30 06:33:45 -07:00 committed by GitHub
parent 042bac2649
commit 2934435a1d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -47,7 +47,10 @@ export default function SqueakPage() {
getSqueakDisplayRequest(hash, setSqueak);
};
const subscribeSqueak = (hash) => {
return subscribeSqueakDisplayRequest(hash, setSqueak);
return subscribeSqueakDisplayRequest(hash, (squeak) => {
setSqueak(squeak);
setAncestorSqueaks([squeak]);
});
};
const getAncestorSqueaks = (hash) => {
getAncestorSqueakDisplaysRequest(hash, setAncestorSqueaks);