Merge pull request #3851 from claudioharu/fix-gen-js-from-hbb

fix: Add missing parameter (retry_for_relay flutter)
This commit is contained in:
RustDesk 2023-03-31 08:52:04 +08:00 committed by GitHub
commit 3ea92642d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -59,7 +59,7 @@ def main():
b = toks[1].replace('ControlKey(ControlKey::', '').replace("Chr('", '').replace("' as _)),", '').replace(')),', '') b = toks[1].replace('ControlKey(ControlKey::', '').replace("Chr('", '').replace("' as _)),", '').replace(')),', '')
KEY_MAP[0] += ' "%s": "%s",\n'%(a, b) KEY_MAP[0] += ' "%s": "%s",\n'%(a, b)
print() print()
print('export function checkIfRetry(msgtype: string, title: string, text: string) {') print('export function checkIfRetry(msgtype: string, title: string, text: string, retry_for_relay: boolean) {')
print(' return %s'%check_if_retry[0].replace('to_lowercase', 'toLowerCase').replace('contains', 'indexOf').replace('!', '').replace('")', '") < 0')) print(' return %s'%check_if_retry[0].replace('to_lowercase', 'toLowerCase').replace('contains', 'indexOf').replace('!', '').replace('")', '") < 0'))
print(';}') print(';}')
print() print()