All of the message pruning logic is now dependent on lastNavigatedTo and lastPruned from ThreadActivityStore instead of MessageStore.threads, so instances of MessageStore.threads.[lastNavigatedTo/lastPruned]` can safely be removed.
This diff just handles removal on the "JS side." We will separately handle removal on the C++ side.
Depends on D9469