10 lines
227 B
Ruby
10 lines
227 B
Ruby
# frozen_string_literal: true
|
|
|
|
class BlockChatMessengerService < BaseService
|
|
def call(account, target_account)
|
|
return if account.id == target_account.id
|
|
block = account.chat_block!(target_account)
|
|
block
|
|
end
|
|
end
|