Add store-and-forward direct-to-device messaging

This commit is contained in:
Mark Haines 2016-08-25 17:35:37 +01:00
parent 3e86dcf1c0
commit e993925279
9 changed files with 288 additions and 4 deletions

View file

@ -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):