chiark / gitweb /
Implement favouriting and boosting posts.
authorSimon Tatham <anakin@pobox.com>
Thu, 4 Jan 2024 08:02:03 +0000 (08:02 +0000)
committerSimon Tatham <anakin@pobox.com>
Thu, 4 Jan 2024 08:16:16 +0000 (08:16 +0000)
commit1484d354f49144fe5524ce713357822259af0b6d
tree62e5a75c2c233c538614e9a28aff351563331ae7
parent4c5e2a87b91e958f63b87e581789fc40e663d4dd
Implement favouriting and boosting posts.

For these uses of selection, we have to support different keystrokes
to fave and unfave, which means we also need to know which keystroke
is valid when. So I've had to plumb the Client through to all of the
methods that move the selection, because those methods need to
retrieve the newly pointed-to status and cache whether it's already
faved/boosted. Otherwise draw(), which can't mutate things, can't
find that out to display the right status line.
src/client.rs
src/file.rs