Update conversations.php
This commit is contained in:
+2
-4
@@ -2091,11 +2091,9 @@
|
||||
}
|
||||
|
||||
try {
|
||||
// Not sending 'before' param due to unstable server behavior in some cases.
|
||||
// The server-side pagination/fallback and client-side dedupe should handle continuity.
|
||||
let url = `get_user_messages.php?user_id=${userId}&limit=${this.messageLimit}`;
|
||||
if (!initial && this.earliestMessage) {
|
||||
url += `&before=${encodeURIComponent(this.earliestMessage)}`;
|
||||
if (this.earliestMessageId) url += `&before_id=${encodeURIComponent(this.earliestMessageId)}`;
|
||||
}
|
||||
|
||||
const data = await this.apiCall(url);
|
||||
if (!data) throw new Error('No autorizado o error en la petición');
|
||||
|
||||
Reference in New Issue
Block a user