comparison libervia/desktop_kivy/core/cagou_main.py @ 515:2ff26b4273df

core: use `pre_accepted` following change in backend.
author Goffi <goffi@goffi.org>
date Sat, 13 Jul 2024 13:06:47 +0200
parents d78728d7fd6a
children 196483685a63
comparison
equal deleted inserted replaced
514:d78728d7fd6a 515:2ff26b4273df
1018 f"Missing 'from_jid' key: {action_data!r}" 1018 f"Missing 'from_jid' key: {action_data!r}"
1019 ) 1019 )
1020 from libervia.frontends.tools.webrtc_file import WebRTCFileReceiver 1020 from libervia.frontends.tools.webrtc_file import WebRTCFileReceiver
1021 confirm_msg = WebRTCFileReceiver.format_confirm_msg(action_data, from_jid) 1021 confirm_msg = WebRTCFileReceiver.format_confirm_msg(action_data, from_jid)
1022 1022
1023 file_accepted = action_data.get("file_accepted", False) 1023 pre_accepted = action_data.get("pre_accepted", False)
1024 if file_accepted: 1024 if pre_accepted:
1025 accepted = True 1025 accepted = True
1026 else: 1026 else:
1027 accepted = await self.ask_confirmation(confirm_msg, _("File Request")) 1027 accepted = await self.ask_confirmation(confirm_msg, _("File Request"))
1028 1028
1029 xmlui_data = {"answer": C.bool_const(accepted)} 1029 xmlui_data = {"answer": C.bool_const(accepted)}