+ # Moves message into Inbox by unsetting the muted-flag
+ def unmute
+ message = current_user.muted_messages.find(params[:message_id])
+
+ if message.unmute
+ flash[:notice] = t(".notice")
+ else
+ flash[:error] = t(".error")
+ end
+
+ if current_user.muted_messages.none?
+ redirect_to inbox_messages_path
+ else
+ redirect_to muted_messages_path
+ end
+ end
+