Bartosz Małkowski opened 3 years ago
|
|
I changed a bit RSM classes. I split it to RSM.Query and RSM.Result. To ask for latest messages use RSMBuilder:
Of course you can create
|
|
Is I see that |
|
Andrzej said that. If you send empty I thought I explained it during video call: You have to retrieve it from received message. If you have no messages locally (fresh client) then use empty |
|
Right. Pardon me if I'm missing something here, but I'm trying to send an empty Here are the print-outs from the exchange:
|
|
I just checked: this code
produces:
so it looks OK for me: I received last 20 messages from mam in conversation with Andrzej. |
|
I just copy and pasted your code, but instead with arturs JID, as I don't believe i have any messages with Andrzej. No messages were produced from it, unless these null bodies are messages?:
|
|
These are the messages. But without body. You may check what exactly it is: chatmarkers, chat states maybe something else. You have to retrieve earlier messages to find messages with body. |
|
I just tried removing the max parameter, and I received the same log:
|
|
Because there are only 6 messages in archive (all without bodies). @andrzej.wojcik, am I right? |
|
@bmalkow It looks like this might be the case. Especially, as "count" in the response is set to "6" which means that according to the request parameters (excluding RSM), only 6 messages in MAM were found. |
|
I took the weekend to try & figure this out on my own, as I thought that I might have been missing something. I'm still out of luck, however. When using the query Also, does the max() parameter limit the amount of bodied messages, or overall message entries? As it looks in my tests, it doesn't limit either to 20, as I'm receiving 30 bodied messages. |
|
I checked again, and it still works as in my previous example. When max==20 then I get 20 messages since index 72976. When I change max to 10: I get 10 messages since index 72986. If it doesn't works for you, then we have to debug it on stanza level: I need to know what client sends to server and when server sends in response. |
|
Alright, let's schedule a zoom call sometime this week. Let me know what day / time works for you, and we can get down to the root of this issue |
|
12 July 2021 20:00 CEST ? https://us02web.zoom.us/j/83777438042 |
|
Is that 8pm CEST, 11am PST? Similar to our last session? Edit: Just checked the zoom session, it automatically did the conversion. That works for me. |
Type |
New Feature
|
Priority |
Normal
|
Assignee |
Asking for N latest messages from MAM, without defining time frames is currently hard. Change API of MAMModule to allow creating request to MAM what asks for just N latest messages.