meganz/webclient

Always a new notification for a new message chat received

wizard86pz opened this issue · 18 comments

Every time I access to web app (last version on Google Chrome 90.0.4430.93 and Safari 14.1 (16611.1.21.161.6)), I always see the new message notification on the left column side.

image

The chat is synced in the web app and no problem using it. But this keeps occurring even if I simply read the chat from the web, the notification icon correctly disappear and i log out: at the next log in, I'll continue to see that notification for the same chat.

Hi there,
Thanks for helping us making the MEGA's webclient better, by reporting this :)

Few questions to help us replicate this:

  1. What type are the messages shown as unread? (normal text, call related, attachment, etc)
  2. Are they in the same chat room?
  3. Are there any errors in the console after you open the chats and mark the messages as read again? If yes, can you send those to https://mega.nz/support with a reference to this issue please

Thanks!
Lyubomir

  1. I see the amount of unread messages always only in a single chat. I have a total of 3 chats, and it happens ONLY in a single chat. The chat does not receive new messages, so I cannot tell you exactly which type of messages are wrongly generating the notification icon on the chat icon shown in the report.
  2. yes, the unread messages are only from a single chat.
  3. I see some error in che Chrome console switching from a chat, to another. I collected the logs once I open the chat to clear the unread amount of messages and switch to another one. Gonna be sent to by the link you gave me, mentioning #79

Thanks for help.

@lpetrov, I've just sent the report, via https://mega.nz/support

Log received.
But not it didn't contained much ideas for me to figure out the issue.

Can you do the following:

  1. Log out
  2. Write in the console:

localStorage.d = 1; localStorage.chatdLogger = 1;

  1. Refresh the page
  2. Log in
  3. Go to that chat that says there are unread messages and open it (that would clear the unread counter)
  4. Right click in the console -> Save as, save the file and email it support@mega.nz (since the file may be too big to paste in the form I provided earlier)

Thanks! :)

@lpetrov, email just sent.

Screen Shot 2021-05-05 at 12 49 19 AM

Sorry, but can you redo the same steps with all from the screenshot checked.
E.g. In the console window, click "All levels" dropdown and mark all except "Default" - Verbose, Info, Warnings and Errors
And resend the new log as a reply to the support email.

A potential fixes are:

  • Try "Menu -> Reload your account"
  • I saw you are using the extension...disabling the extension or removing it and reinstalling it may help

But those won't guarantee it won't happen again. I will log it as a bug and try to dig more, but still, a log would speed things up a bit :)

Thanks!

image

Can you redo the same steps with all from the screenshot checked?
E.g. In the console window, click "All levels" dropdown and mark all except "Default" - Verbose, Info, Warnings and Errors
And resend the new log as a reply to the support email.

Yeah, the log didn't included "Verbose" messages, since they were filtered by that feature in the dev tools.
So, basically once those are enabled as in the screenshot I'd provided and steps redone, the log would contain the complete data where the client tries to mark the messages as read :)

Ok, I've done and sent as attachment in an email.

Sorry for the delay, it had been a busy days (even on the weekend).
I got the log and I'm discussing it internally with some other team members, since from the log, it seems ok at first, but we would check few more stuff to try to figure it out :)

No problem, I understand. My intent here is to report and give you all the details that might help the team. I'm not focused to require an immediate fix.

As extra info, without any test on my side to troubleshoot the issue, yesterday was completely fixed. Once I asked to my chat partner to send me a message there...the issue reappeared and is currently still occurring.

Hello there.
We found the core issue and it should be fixed.
Let us know if it works for you :)

Thanks!
Lyubomir

Great, thanks. I'm waiting for the MEGA app CHrome extension update, to have the 4.0.6 web app to test.

The fix was server side related, so it should work no matter the client version :)

Even better, I'll check in coming hours/days. Thanks.

It seems solved, at least with the chat that I've always used to reproduce the issue, thank server side team.