Skip to content

Commit

Permalink
Remove overriding of template reply_to_text
Browse files Browse the repository at this point in the history
The code that uses this object gets the reply to text from the
notification itself, not the template.

So I don’t think this overriding is used.
  • Loading branch information
quis committed Dec 5, 2024
1 parent 5c15130 commit b7ae5de
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/models/notification.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@ class Notification(JSONModel):

@classmethod
def from_id_and_service_id(cls, id, service_id):
instance = cls(notification_api_client.get_notification(service_id, str(id)))
instance.template["reply_to_text"] = instance.reply_to_text
return instance
return cls(notification_api_client.get_notification(service_id, str(id)))

@property
def status(self):
Expand Down

0 comments on commit b7ae5de

Please sign in to comment.