diff options
Diffstat (limited to 'src/message.py')
-rw-r--r-- | src/message.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/message.py b/src/message.py index 368ab7d..4e37609 100644 --- a/src/message.py +++ b/src/message.py @@ -57,7 +57,13 @@ class WeegtkMessage(Gtk.Box): else: self.set_visible(True) self.username.set_label(data["username"]) - self.avatar.set_text(data["username"]) + + # Hide avatar for system messages + if data["type"] == "system": + self.avatar.set_visible(False) + else: + self.avatar.set_text(data["username"]) + self.avatar.set_visible(True) first = True for message in data["text"]: |