> and everyone deletes the code
I'm not sure I understand your attack in (b), the message is encrypted to the participants the server cannot relay or mitm it.