mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-04 06:34:56 -04:00
Add store-and-forward direct-to-device messaging
This commit is contained in:
parent
3e86dcf1c0
commit
e993925279
9 changed files with 288 additions and 4 deletions
|
@ -154,6 +154,7 @@ class StreamToken(
|
|||
"receipt_key",
|
||||
"account_data_key",
|
||||
"push_rules_key",
|
||||
"to_device_key",
|
||||
))
|
||||
):
|
||||
_SEPARATOR = "_"
|
||||
|
@ -190,6 +191,7 @@ class StreamToken(
|
|||
or (int(other.receipt_key) < int(self.receipt_key))
|
||||
or (int(other.account_data_key) < int(self.account_data_key))
|
||||
or (int(other.push_rules_key) < int(self.push_rules_key))
|
||||
or (int(other.to_device_key) < int(self.to_device_key))
|
||||
)
|
||||
|
||||
def copy_and_advance(self, key, new_value):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue