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