Why not just replace the this.deleteMessage with this.deleteMessages ? I think we can just leave deleteMessages for all the cases. I will verify it later, thanks for the suggestion :)