Check if like was sent

merge-requests/21/head
Bob Mottram 2021-03-12 20:28:04 +00:00
parent fe57220191
commit 203e428a74
1 changed files with 7 additions and 6 deletions

View File

@ -637,12 +637,13 @@ def runNotificationsClient(baseDir: str, proxyType: str, httpPrefix: str,
actor + '/followers#buttonheader') actor + '/followers#buttonheader')
prevFollow = speakerJson['notify']['followRequests'] prevFollow = speakerJson['notify']['followRequests']
elif speakerJson['notify']['likedBy'] != prevLike: elif speakerJson['notify']['likedBy'] != prevLike:
if notificationSounds: if '##sent##' not in speakerJson['notify']['likedBy']:
_playNotificationSound(soundsDir + '/' + if notificationSounds:
likeSoundFilename, player) _playNotificationSound(soundsDir + '/' +
_desktopNotification(notificationType, title, likeSoundFilename, player)
'New like ' + _desktopNotification(notificationType, title,
speakerJson['notify']['likedBy']) 'New like ' +
speakerJson['notify']['likedBy'])
prevLike = speakerJson['notify']['likedBy'] prevLike = speakerJson['notify']['likedBy']
elif speakerJson['notify']['share'] != prevShare: elif speakerJson['notify']['share'] != prevShare:
if speakerJson['notify']['share'] is True: if speakerJson['notify']['share'] is True: