mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-06 16:55:20 -04:00
Fix an invalid comparison of UserPresenceState
to str
(#14393)
This commit is contained in:
parent
d8cc86eff4
commit
618e4ab81b
5 changed files with 46 additions and 8 deletions
|
@ -542,8 +542,13 @@ class FakeRedisPubSubProtocol(Protocol):
|
|||
self.send("OK")
|
||||
elif command == b"GET":
|
||||
self.send(None)
|
||||
|
||||
# Connection keep-alives.
|
||||
elif command == b"PING":
|
||||
self.send("PONG")
|
||||
|
||||
else:
|
||||
raise Exception("Unknown command")
|
||||
raise Exception(f"Unknown command: {command}")
|
||||
|
||||
def send(self, msg):
|
||||
"""Send a message back to the client."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue