From dca5e095baef8c7ad229da0a98a2f1b30bbeda19 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 18 Mar 2021 19:43:10 +0000 Subject: [PATCH] Icons for dm and reply --- desktop_client.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/desktop_client.py b/desktop_client.py index 6b7417c95..9a504bb8b 100644 --- a/desktop_client.py +++ b/desktop_client.py @@ -14,6 +14,7 @@ import select import webbrowser import urllib.parse from random import randint +from utils import isDM from utils import loadTranslationsFromFile from utils import removeHtml from utils import getNicknameFromActor @@ -505,6 +506,10 @@ def _desktopShowBoxJson(boxName: str, boxJson: {}, posStr += ' ' authorActor = postJsonObject['object']['attributedTo'] name = getNicknameFromActor(authorActor) + if isDM(postJsonObject): + name += '📧' + name + if postJsonObject['object'].get('inReplyTo'): + name += '↲' + name if len(name) > 16: name = name[:16] else: