Aligns the ready payload query with the GET /api/dm approach: get MAX(created_at) per channel first, then fetch the actual message rows. Avoids issues with federated relay messages whose local snowflake IDs don't match chronological order.
Aligns the ready payload query with the GET /api/dm approach: get MAX(created_at) per channel first, then fetch the actual message rows. Avoids issues with federated relay messages whose local snowflake IDs don't match chronological order.