add pagination to inbox page

This commit is contained in:
chrisw
2018-03-21 15:08:03 +00:00
parent bf58a4347b
commit f5c467e4ff
7 changed files with 90 additions and 32 deletions

View File

@@ -105,7 +105,7 @@ def get_sms_thread(service_id, user_number):
notification_api_client.get_notifications_for_service(service_id,
to=user_number,
template_type='sms')['notifications'] +
service_api_client.get_inbound_sms(service_id, user_number=user_number)
service_api_client.get_inbound_sms(service_id, user_number=user_number)['data']
), key=lambda notification: notification['created_at']):
is_inbound = ('notify_number' in notification)