mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 22:14:55 -04:00
Support clients supplying older tokens, fix short poll test
This commit is contained in:
parent
79b65f3875
commit
fb46937413
2 changed files with 3 additions and 3 deletions
|
@ -112,7 +112,7 @@ class StreamToken(
|
|||
def from_string(cls, string):
|
||||
try:
|
||||
keys = string.split(cls._SEPARATOR)
|
||||
if len(keys) == len(cls._fields) - 1:
|
||||
while len(keys) < len(cls._fields):
|
||||
# i.e. old token from before receipt_key
|
||||
keys.append("0")
|
||||
return cls(*keys)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue