Skip to content

Commit

Permalink
trim chatty sender
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Robinson committed May 13, 2021
1 parent 33fc9cb commit 0d837b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ def notifications(self, bus, message):
if isinstance(arg, dbus.Dictionary):
if arg["desktop-entry"] == "sm.puri.Chatty":
alert_dict["category"] = "SMS"
alert_dict["sender"] = message.get_args_list()[3]
alert_dict["message"] = " " + message.get_args_list()[4]
alert_dict["sender"] = message.get_args_list()[3].split("New message from ")[1]
alert_dict["message"] = message.get_args_list()[4]
alert_dict_empty = not alert_dict
if len(alert_dict) > 0:
self.device.send_notification(alert_dict)

0 comments on commit 0d837b5

Please sign in to comment.