diff --git a/notifications_client.py b/notifications_client.py index 045542b1f..cd0583f88 100644 --- a/notifications_client.py +++ b/notifications_client.py @@ -453,7 +453,7 @@ def _showLocalBox(notifyJson: {}, boxName: str, posStr += ' ' if speakerJson.get('name'): udata = speakerJson['name'] - name = udata.encode("ascii", "ignore").decode() + name = strip(udata.encode("ascii", "ignore").decode()) else: name = '' if len(name) > 16: @@ -462,7 +462,7 @@ def _showLocalBox(notifyJson: {}, boxName: str, while len(name) < 16: name += ' ' udata = speakerJson['content'] - content = udata.encode("ascii","ignore").decode() + content = strip(udata.encode("ascii","ignore").decode()) if speakerJson.get('detectedLinks'): if len(speakerJson['detectedLinks']) > 0: content = '🔗' + content