Follow request prompt

merge-requests/21/head
Bob Mottram 2021-03-15 20:33:07 +00:00
parent 999296a4fb
commit 28a30728cf
1 changed files with 12 additions and 1 deletions

View File

@ -481,7 +481,18 @@ def _showLocalBox(notifyJson: {}, boxName: str,
sayStr += \
'Use the \33[3mnext\33[0m and \33[3mprev\33[0m commands to navigate.'
_sayCommand(sayStr, sayStr, screenreader, systemLanguage, espeak)
if notifyJson:
if notifyJson.get('followRequestsList'):
if len(notifyJson['followRequestsList']) > 0:
print('')
sayStr = indent + 'You have a follow request from ' + \
'\33[7m' + notifyJson['followRequestsList'][0] + '\33[0m'
_sayCommand(sayStr, sayStr, screenreader, systemLanguage,
espeak)
sayStr = indent + 'Use the \33[3maccept\33[0m or ' + \
'\33[3mreject\33[0m commands to respond.'
_sayCommand(sayStr, sayStr, screenreader, systemLanguage,
espeak)
print('')