comparison libervia/backend/plugins/plugin_xep_0373.py @ 4217:b53b6dc1f929

plugin XEP-0373: fix serialisation of `public_key_list`
author Goffi <goffi@goffi.org>
date Tue, 05 Mar 2024 17:31:36 +0100
parents 5f2d496c633f
children 0d7bb4df2343
comparison
equal deleted inserted replaced
4216:1a7a3e4b52a4 4217:b53b6dc1f929
1216 timestamp=datetime.now(timezone.utc) 1216 timestamp=datetime.now(timezone.utc)
1217 )) 1217 ))
1218 1218
1219 await self.publish_public_keys_list(client, public_keys_list) 1219 await self.publish_public_keys_list(client, public_keys_list)
1220 1220
1221 await self.__storage[client.profile].force(storage_key, public_keys_list) 1221 await self.__storage[client.profile].force(
1222 storage_key,
1223 [pkm.to_dict() for pkm in public_keys_list]
1224 )
1222 1225
1223 return secret_key 1226 return secret_key
1224 1227
1225 @staticmethod 1228 @staticmethod
1226 def __build_content_element( 1229 def __build_content_element(