https://github.com/mozilla-b2g/gaia/pull/19649 should land soon (I think, before the end of this week) and you won't need this anymore (because we will play in the "onsuccess" handler when calling "send" or "sendMMS", and as a result we won't have the sound when another app sends a message)