As of June 2018 iOs 10.13.4 High Sierra, this does *not* work. Still have an unread message indicator on my iMessage icon in my dock -- despite the fact that I have zero unread messages. Ugh, Apple.