[buddypress-trac] [BuddyPress Trac] #8696: BP REST API Messages endpoint does not return latest message in excerpt field

buddypress-trac noreply at wordpress.org
Thu May 5 11:34:39 UTC 2022


#8696: BP REST API Messages endpoint does not return latest message in excerpt
field
-------------------------+-----------------------------
 Reporter:  niftythree   |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  REST API     |    Version:
 Severity:  normal       |   Keywords:
-------------------------+-----------------------------
 Hello again,

 As you may know from our previous thread, we’re working on the messaging
 portion of our mobile app which interfaces to the BP REST API. We’ve
 noticed that the “messages” endpoint in the API returns an “excerpt” which
 is quite handy. However, it’s not necessarily the excerpt of the most
 recent message, instead it's an excerpt of the last message in the current
 batch returned by the API. To get the actual latest message it is
 necessary to call the messages endpoint repeatedly until it has reached
 the end of each of the message threads, which is not very efficient from
 the app’s end and slows things down quite a bit. Would it be possible to
 change this so that the excerpt returned is of the latest message? (i.e.
 when retrieving the Inbox, the excerpt would be the last incoming message,
 when retrieving the Sentbox the excerpt would be from the last outgoing
 message).

 Thank you.

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8696>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list