MessageView: take ownership of the channel object

Ensures that the channel object gets correctly destructed
when closing a channel view.