Remove log of activity from single notification

Having the full history of the message is more information than is necessary.
We should only show what stage the message is at, and the time that it reached
that stage.

We can do research later on to find out if users understand or care about the
different stages.
This commit is contained in:
Chris Hill-Scott
2015-12-18 17:03:49 +00:00
parent cad5698754
commit 450c7aaeaa
4 changed files with 26 additions and 41 deletions

View File

@@ -75,10 +75,6 @@ def shownotification(notification_id):
message=[
message for message in messages if message['id'] == notification_id
][0],
history=[
{'time': now, 'status': 'Delivered'},
{'time': now, 'status': 'Received by handset'},
{'time': now, 'status': 'Accepted by network'},
{'time': now, 'status': 'Sent'},
]
delivered_at=now,
uploaded_at=now
)