From 54d571d1ce83a62f77e993d808185fff8352209c Mon Sep 17 00:00:00 2001 From: quadrismegistus Date: Sat, 12 Sep 2020 22:52:37 +0100 Subject: [PATCH] updates --- komrade/backend/messages.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/komrade/backend/messages.py b/komrade/backend/messages.py index 5a56586..2711f65 100644 --- a/komrade/backend/messages.py +++ b/komrade/backend/messages.py @@ -59,10 +59,10 @@ class Message(Logger): else: msg=self.msg return f""" - from: @{self.from_name} + from: {'@'+self.from_name if self.from_name else ''} ({b64encode(self.from_pubkey).decode()}) - to: @{self.to_name} + to: {'@'+self.to_name if self.to_name else ''} ({b64encode(self.to_pubkey).decode()}) msg: {msg}