DMThreadsPage: Update the unread_count when entering a DMPage
Remove some unused code