Code Review

I would move this logic into the `User` model. Then you can do something like:

```ruby
@received_messages = current_user.received_messages
@sent_messages = current_user.sent_messages
```