This differential uses JSI from previous differential to update badge count by taking into account unread thick threads. The algorithm is the same as for the keyservers:
- If we are connected to the tunnelbroker, we trust redux and update notifs storage (MMKV) with data from redux.
- If we are disconnected from the tunnelbroker, we trust notifs storage (MMKV) and fetch data from there.
- We sum the number of unread thick threads and partial unread counts for each keyserver to get the total unread count.
- We set badge count to total unread count.