Closed rbennettcw closed 1 year ago
Time box: 2 hours.
This seems to be a small/easy change and I already have a proof of concept working, so I'm converting this ticket from a spike to an enhancement/cleanup.
I actually didn't see any usage of the value on the frontend, so I'm pausing this for now to discuss next steps on: https://github.com/hicommonwealth/commonwealth/issues/4701
Discussion from #4701 resolved. Pushed latest to PR.
Currently, there is a
user.lastVisited
field in the DB which looks like this:Whenever a comment/thread is created, the client makes a request to
/writeUserSetting
, which updates theUser.lastVisted
field.This is possibly redundant since we already save the
Address.last_active
field via server when comments/threads are created. The addresses provide activity timestamps for each chain a user took action in.Acceptance Criteria