From c5a74646f7f94c43e4c4c9c045f779c3eda27130 Mon Sep 17 00:00:00 2001 From: Loh Boon Keat Date: Thu, 23 Jun 2022 23:43:10 +0800 Subject: [PATCH] fix "reading of phone numbers for unsaved contacts while reading messages" --- addon/appModules/whatsapp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addon/appModules/whatsapp.py b/addon/appModules/whatsapp.py index 2188ffc..413d5b8 100644 --- a/addon/appModules/whatsapp.py +++ b/addon/appModules/whatsapp.py @@ -49,7 +49,7 @@ def configFile(self): self.viewConfig = f.read() except FileNotFoundError: with open(f'{appArgs.configPath}\\WhatsAppEnhancements.ini', 'w') as f: - f.write('disabled') + f.write('enabled') # Function that receives the UIAAutomationId by parameter, and returns the match object def get(self, id, errorMessage, gesture): @@ -97,7 +97,7 @@ def event_NVDAObject_init(self, obj): except: pass try: - if self.viewConfig == 'disabled': return + if self.viewConfig == 'enabled': return if obj.UIAAutomationId == 'BubbleListItem': obj.name = sub(r'\+\d[()\d\s‬-]{12,}', '', obj.name) except: