mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-02 17:48:50 -04:00
reading messages for inbox from new most_recent endpoint
avoids us having to work out and display most recent messages only on the front-end - it's now all done in api
This commit is contained in:
@@ -238,7 +238,7 @@ def get_inbox_partials(service_id):
|
||||
if 'inbound_sms' not in current_service['permissions']:
|
||||
abort(403)
|
||||
|
||||
inbound_messages_data = service_api_client.get_inbound_sms(service_id, page=page)
|
||||
inbound_messages_data = service_api_client.get_most_recent_inbound_sms(service_id, page=page)
|
||||
inbound_messages = inbound_messages_data['data']
|
||||
|
||||
if not inbound_messages:
|
||||
|
||||
Reference in New Issue
Block a user