Skip to content

Commit

Permalink
fix "reading of phone numbers for unsaved contacts while reading mess…
Browse files Browse the repository at this point in the history
…ages"
  • Loading branch information
lbk2907 committed Jun 23, 2022
1 parent a242f4c commit c5a7464
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addon/appModules/whatsapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit c5a7464

Please sign in to comment.