This commit is contained in:
HgO 2022-10-26 14:53:29 +02:00
parent 004a575c81
commit 425fcd3a7c

View file

@ -306,10 +306,10 @@ class Callbacks:
async def key_verification_accept(self, event: KeyVerificationKey): async def key_verification_accept(self, event: KeyVerificationKey):
sas = self.matrix_client.key_verifications[event.transaction_id] sas = self.matrix_client.key_verifications[event.transaction_id]
emoji_list = sas.get_emoji() emoji_list = sas.get_emoji()
emoji_txt = emoji_list.join(" ") emoji_str = " ".join(emoji for emoji, alt_text in emoji_list)
logger.info( logger.info(
f"Received request to verify emojis from {event.sender}: {emoji_txt}" f"Received request to verify emojis from {event.sender}: {emoji_str}"
) )
event_response = await self.matrix_client.confirm_short_auth_string( event_response = await self.matrix_client.confirm_short_auth_string(
@ -353,8 +353,9 @@ class Callbacks:
) )
return return
verified_devices = " ".join(sas.verified_devices)
logger.info( logger.info(
f"Successfully verified devices from {event.sender}: {sas.verified_devices.join(' ')}" f"Successfully verified devices from {event.sender}: {verified_devices}"
) )
async def unknown(self, room: MatrixRoom, event: UnknownEvent) -> None: async def unknown(self, room: MatrixRoom, event: UnknownEvent) -> None: