Since you are calling `@message.sender` several times, it may be good to set sender as an instance variable in the controller.