about summary refs log tree commit diff
path: root/app/models/account.rb
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-07-24 13:01:12 -0500
committermultiple creatures <dev@multiple-creature.party>2019-07-24 13:01:12 -0500
commit25d628fca314aebb25e3976f006cc96629a3d780 (patch)
treebb4304947f7727264038b90b0e48a9783a1f30ff /app/models/account.rb
parentd83fcfd1f15a97bfb5c6f36a82d7253175518daf (diff)
revert the current unfinished chat implementation
Diffstat (limited to 'app/models/account.rb')
-rw-r--r--app/models/account.rb10
1 files changed, 0 insertions, 10 deletions
diff --git a/app/models/account.rb b/app/models/account.rb
index 068b5e7a0..efa6b8fbd 100644
--- a/app/models/account.rb
+++ b/app/models/account.rb
@@ -48,7 +48,6 @@
 #  adult_content           :boolean          default(FALSE), not null
 #  silenced_at             :datetime
 #  suspended_at            :datetime
-#  supports_chat           :boolean          default(FALSE), not null
 #  gently                  :boolean          default(FALSE), not null
 #  kobold                  :boolean          default(FALSE), not null
 #  froze                   :boolean
@@ -75,9 +74,6 @@ class Account < ApplicationRecord
 
   LOCAL_DOMAINS = ENV.fetch('LOCAL_DOMAINS', '').chomp.split(/\.?\s+/).freeze
 
-  has_many :chat_accounts, dependent: :destroy, inverse_of: :account
-  has_many :chat_tags, through: :chat_accounts, source: :tag
-
   validates :username, presence: true
 
   # Remote user validations
@@ -559,7 +555,6 @@ class Account < ApplicationRecord
 
   before_create :generate_keys
   before_create :set_domain_from_inbox_url
-  before_create :set_chat_support
   before_validation :prepare_contents, if: :local?
   before_validation :prepare_username, on: :create
   before_destroy :clean_feed_manager
@@ -582,11 +577,6 @@ class Account < ApplicationRecord
     nil
   end
 
-  def set_chat_support
-    return unless local?
-    self.supports_chat = true
-  end
-
   def generate_keys
     return unless local? && !Rails.env.test?