blob: 56defae52a88e4e89d7d22cc1a8f24d46c239a4e (
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) unless account.id == conversation.account_id
end
end
|