Feature: Ability to mute contacts (#891)

fixes: #867
This commit is contained in:
Abdulkadir Poyraz
2020-05-26 15:13:59 +03:00
committed by GitHub
parent d8d14fc4a4
commit b1aab228ae
16 changed files with 148 additions and 2 deletions

View File

@@ -20,6 +20,11 @@ class Api::V1::Accounts::ConversationsController < Api::BaseController
def show; end
def mute
@conversation.mute!
head :ok
end
def toggle_status
@status = @conversation.toggle_status
end