feat: Authenticate by SSO tokens (#1439)

Co-authored-by: Pranav Raj Sreepuram <pranavrajs@gmail.com>
This commit is contained in:
Sojan Jose
2020-11-25 13:59:38 +05:30
committed by GitHub
parent cb2a528be6
commit a988724c91
10 changed files with 147 additions and 8 deletions

View File

@@ -98,7 +98,7 @@ class Conversation < ApplicationRecord
end
def muted?
!Redis::Alfred.get(mute_key).nil?
Redis::Alfred.get(mute_key).present?
end
def lock!
@@ -287,7 +287,7 @@ class Conversation < ApplicationRecord
end
def mute_key
format('CONVERSATION::%<id>d::MUTED', id: id)
format(Redis::RedisKeys::CONVERSATION_MUTE_KEY, id: id)
end
def mute_period