summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaksim Sukharev <antreesy.web@gmail.com>2024-07-12 18:09:20 +0200
committerMaksim Sukharev <antreesy.web@gmail.com>2024-07-12 18:09:20 +0200
commit9fcea1aeea0dc14a01d4596fc2eb846f8bd3cb01 (patch)
tree6e000fc867985898202ddfcecf0b8fe4a241ff52
parent41077143e6f5d43366dfbf14d0a7ee6a326f5d80 (diff)
fixup last known and responsesdebug/stable29
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
-rw-r--r--src/store/messagesStore.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/store/messagesStore.js b/src/store/messagesStore.js
index a7b2766ee..3e72110fd 100644
--- a/src/store/messagesStore.js
+++ b/src/store/messagesStore.js
@@ -1141,6 +1141,7 @@ const actions = {
console.debug(`chat_debug: ${requestId.split(':').shift()} | polling start`, {
time: new Date().toLocaleString(),
requestId,
+ lastKnownMessageId,
marker: `polling from ${lastKnownMessageId}`,
})
const response = await request({
@@ -1153,7 +1154,10 @@ const actions = {
console.debug(`chat_debug: ${requestId.split(':').shift()} | polling end`, {
time: new Date().toLocaleString(),
requestId,
+ lastKnownMessageId,
marker: `${response.data.ocs.data?.length} messages received`,
+ 'x-chat-last-common-read': response.headers['x-chat-last-common-read'],
+ 'x-chat-last-given': response.headers['x-chat-last-given'],
})
if ('x-chat-last-common-read' in response.headers) {
const lastCommonReadMessage = parseInt(response.headers['x-chat-last-common-read'], 10)