diff options
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, |