xmtp / xmtp-js

XMTP client SDKs for JavaScript applications.

Home Page:https://xmtp.org/docs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Server-Side Filtering in `conversations.list()` Method

fabriguespe opened this issue · comments

Feature Request:

Enhance the conversations.list() function to support server-side time-based filtering and provide sorting by the most recent messages.

Current Behavior:

The function fetches all conversations and applies filters like startTime and endTime only after loading, which is not efficient.

Desired Features:

  1. Server-Side Time Filtering: Allow filtering conversations by startTime and endTime on the server before fetching to the client.
  2. Recent Message Sorting: Enable sorting by the timestamp of the most recent message while respecting protocol privacy.

see this blog post that outlines why the current behavior is intentional.