summaryrefslogtreecommitdiffstats
path: root/app/models/encrypted_message.rb
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2020-07-01 19:05:21 +0200
committerGitHub <noreply@github.com>2020-07-01 19:05:21 +0200
commit6d23d40420e4548778f3ca4ed9e8cb16e0eb0073 (patch)
tree814fe2ea2f3b6b8ab9db2d12b289ba49db44c8fd /app/models/encrypted_message.rb
parente9ea960773ee6a1068623374b21d768918fbc93b (diff)
Change Redis#exists calls to Redis#exists? to avoid deprecation warning (#14191)
Diffstat (limited to 'app/models/encrypted_message.rb')
-rw-r--r--app/models/encrypted_message.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/app/models/encrypted_message.rb b/app/models/encrypted_message.rb
index 5e0aba4342a..aa4182b4e12 100644
--- a/app/models/encrypted_message.rb
+++ b/app/models/encrypted_message.rb
@@ -32,16 +32,13 @@ class EncryptedMessage < ApplicationRecord
private
def push_to_streaming_api
- Rails.logger.info(streaming_channel)
- Rails.logger.info(subscribed_to_timeline?)
-
return if destroyed? || !subscribed_to_timeline?
PushEncryptedMessageWorker.perform_async(id)
end
def subscribed_to_timeline?
- Redis.current.exists("subscribed:#{streaming_channel}")
+ Redis.current.exists?("subscribed:#{streaming_channel}")
end
def streaming_channel