From f3201c850ed6fa967074e0a07d9d017540ae69f4 Mon Sep 17 00:00:00 2001 From: Lucas Fryzek Date: Tue, 21 Jan 2025 12:33:59 +0000 Subject: message: Grey out system messages --- src/chat.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/chat.py') diff --git a/src/chat.py b/src/chat.py index ef43e5a..e99a524 100644 --- a/src/chat.py +++ b/src/chat.py @@ -165,7 +165,10 @@ class WeegtkChat(Adw.Bin): last = self.model.get_string(count - 1) last_data = json.loads(last) if last_data["username"] == user: - msg_type = "message_append" + if msg_type == "system": + msg_type = "system_append" + else: + msg_type = "message_append" data = { "username": user, -- cgit