blob: 46adb98dc2e4ec94adb7cb46db12cc7fbc582487 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
# frozen_string_literal: true
class MuteConversationService < BaseService
def call(account, conversation, hidden: false)
return if account.blank? || conversation.blank?
account.mute_conversation!(conversation, hidden: hidden)
MuteConversationWorker.perform_async(account.id, conversation.id) if hidden
end
end
|