Tree: remember last seen messages for badges

Don't increase badge numbers for already seen messages (bouncer users).