comparison sat/plugins/plugin_sec_aesgcm.py @ 4051:c23cad65ae99

core: renamed `messageReceived` trigger to `message_received`
author Goffi <goffi@goffi.org>
date Mon, 29 May 2023 13:32:08 +0200
parents 524856bd7b19
children
comparison
equal deleted inserted replaced
4050:199473ffe4ea 4051:c23cad65ae99
68 ) 68 )
69 self._attach.register( 69 self._attach.register(
70 self.can_handle_attachment, self.attach, encrypted=True) 70 self.can_handle_attachment, self.attach, encrypted=True)
71 host.trigger.add("XEP-0363_upload_pre_slot", self._upload_pre_slot) 71 host.trigger.add("XEP-0363_upload_pre_slot", self._upload_pre_slot)
72 host.trigger.add("XEP-0363_upload", self._upload_trigger) 72 host.trigger.add("XEP-0363_upload", self._upload_trigger)
73 host.trigger.add("messageReceived", self._message_received_trigger) 73 host.trigger.add("message_received", self._message_received_trigger)
74 74
75 async def download(self, client, uri_parsed, dest_path, options): 75 async def download(self, client, uri_parsed, dest_path, options):
76 fragment = bytes.fromhex(uri_parsed.fragment) 76 fragment = bytes.fromhex(uri_parsed.fragment)
77 77
78 # legacy method use 16 bits IV, but OMEMO media sharing published spec indicates 78 # legacy method use 16 bits IV, but OMEMO media sharing published spec indicates