mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-05 03:44:56 -04:00
Use device_one_time_keys_count
to match MSC3202 (#14565)
* Use `device_one_time_keys_count` to match MSC3202 Rename the `device_one_time_key_counts` key in responses to `device_one_time_keys_count` to match the name specified by MSC3202. Also change related variable/class names for consistency. Signed-off-by: Andrew Ferrazzutti <andrewf@element.io> * Update changelog.d/14565.misc * Revert name change for `one_time_key_counts` key as this is a different key altogether from `device_one_time_keys_count`, which is used for `/sync` instead of appservice transactions. Signed-off-by: Andrew Ferrazzutti <andrewf@element.io>
This commit is contained in:
parent
d56f48038a
commit
1183c372fa
9 changed files with 38 additions and 34 deletions
|
@ -25,7 +25,7 @@ import synapse.storage
|
|||
from synapse.api.constants import EduTypes, EventTypes
|
||||
from synapse.appservice import (
|
||||
ApplicationService,
|
||||
TransactionOneTimeKeyCounts,
|
||||
TransactionOneTimeKeysCount,
|
||||
TransactionUnusedFallbackKeys,
|
||||
)
|
||||
from synapse.handlers.appservice import ApplicationServicesHandler
|
||||
|
@ -1123,7 +1123,7 @@ class ApplicationServicesHandlerOtkCountsTestCase(unittest.HomeserverTestCase):
|
|||
# Capture what was sent as an AS transaction.
|
||||
self.send_mock.assert_called()
|
||||
last_args, _last_kwargs = self.send_mock.call_args
|
||||
otks: Optional[TransactionOneTimeKeyCounts] = last_args[self.ARG_OTK_COUNTS]
|
||||
otks: Optional[TransactionOneTimeKeysCount] = last_args[self.ARG_OTK_COUNTS]
|
||||
unused_fallbacks: Optional[TransactionUnusedFallbackKeys] = last_args[
|
||||
self.ARG_FALLBACK_KEYS
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue