mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-21 22:38:06 +01:00
Add an explicit client presence system.
This commit is contained in:
committed by
Jon Chambers
parent
9457325119
commit
2c29f831e8
9
service/src/main/resources/lua/clear_presence.lua
Normal file
9
service/src/main/resources/lua/clear_presence.lua
Normal file
@@ -0,0 +1,9 @@
|
||||
local presenceKey = KEYS[1]
|
||||
local presenceUuid = ARGV[1]
|
||||
|
||||
if redis.call("GET", presenceKey) == presenceUuid then
|
||||
redis.call("DEL", presenceKey)
|
||||
return true
|
||||
end
|
||||
|
||||
return false
|
||||
Reference in New Issue
Block a user