diff options
author | Lucas Fryzek <lucas.fryzek@fryzekconcepts.com> | 2025-01-21 12:33:59 +0000 |
---|---|---|
committer | Lucas Fryzek <lucas.fryzek@fryzekconcepts.com> | 2025-01-21 12:33:59 +0000 |
commit | f3201c850ed6fa967074e0a07d9d017540ae69f4 (patch) | |
tree | a30092bafb304c071a117f12f6e2e51ffc395772 /src/chat.py | |
parent | 794e9692fc47b7c801183a12f1910d703cc9dfcb (diff) |
message: Grey out system messages
Diffstat (limited to 'src/chat.py')
-rw-r--r-- | src/chat.py | 5 |
1 files changed, 4 insertions, 1 deletions
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, |