Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chat history is not working properly. #4269

Open
fluttercid opened this issue Apr 18, 2024 · 6 comments
Open

Chat history is not working properly. #4269

fluttercid opened this issue Apr 18, 2024 · 6 comments

Comments

@fluttercid
Copy link

MongooseIM version: 6.1.0
Installed from: Helm chart
image
Erlang/OTP version: N/A

Hello.
I am using bosh from web client and there are two issues now.

  1. When a user re-login (refresh page), the last message is sent even mam history does have this message.
    : It causes Individual chat and group chat; it happens more often on group chat.
  2. When a user sends a message on group chat, a time (using stamp on mam history) is not match
  1. case 1
    : totally wrong
    image
  2. case 2
    : not same as sent time (6 or 7 hours behind, or just random)

[Attachment]

  • mongooseim.toml (mam and muc part)
    image
  • Server logs (there is no specific errors)
    image

Could you help me to resolve these issues?
Thank you for your time.

@arcusfelis
Copy link
Contributor

arcusfelis commented Apr 30, 2024

Hi,

When a user sends a message on group chat, a time (using stamp on mam history) is not match

What do you mean? Please, post more details (stanzas, ids and what time is and should be)

@fluttercid
Copy link
Author

Hi,
Thank you for the response.
This is data in mam_muc_message
image
and this is stanza from response of MAM
image
I tested it around 3 weeks ago and it shouldn't be 1970.
If there is anything I need to add, please let me know.
Thank you.

@arcusfelis
Copy link
Contributor

yes, looks like somehow we ended up encoding timestamp as 0.
Could be a bug in mod_mam_utils:generate_message_id(TS) (TS is provided 0). It gets it from Activity#activity.message_time in mod_muc_room.

Do you use mod_muc or mod_muc_light by the way?

@fluttercid
Copy link
Author

I am using a mod_muc now.

@arcusfelis
Copy link
Contributor

same_mam_id_for_peers=true could be a reason.

@fluttercid
Copy link
Author

Oh, I will change and test it.
Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants