Of course it's not working, this is broken code that only worked for the few cases single recipient supported. Now that recipients can be added, removed and edited, this will need to be updated _whenever_ those behaviours occur. See my comments here: https://github.com/mozilla-b2g/gaia/pull/9521/files#r4141493 this is _directly_ related.