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

[BUG] no e-mail notification on chat messages #396

Closed
Veraellyunjie opened this issue Apr 15, 2024 · 11 comments
Closed

[BUG] no e-mail notification on chat messages #396

Veraellyunjie opened this issue Apr 15, 2024 · 11 comments

Comments

@Veraellyunjie
Copy link

In profile settings:

Receive e-mails on likes and matches
Receive e-mails on chats

both have been ticked.

I got an e-mail on a match
but I also got chat messages but no e-mail about them

@Veraellyunjie
Copy link
Author

Update:
I am now emailed You have a new message!.
But:

There is wrong placement of my name and the name of the person I chat with:

Hi %THEY%,

%ME% just sent you a message! Time to send them a message back.

I would expect it to be:

Hi %ME%,

%THEY% just sent you a message! Time to send them a message back.

I get as many emails as there were chat messages, even though they comprise a single communication session, so I would expect a single email. Perhaps introduce a timeout, say, 1 hour?

@Nonononoki
Copy link
Contributor

  1. Issue with swapped names should now be fixed: d871d0c
  2. Not sure how to handle the email per message problem. A timeout of 1 hour is pretty long. My suggesion:
  • Only send an email when the last message is NOT from the sender. In this case you only get one email if the sender sends 100 messages after another.
  • Only send an email when the user hasn't been online recently. If the user has been online for X seconds don't send an email.

@lucifercr07
Copy link
Contributor

@Nonononoki would like to work on this, let me know if there's any other issue of higher priority you would like me to pick up.

@Nonononoki
Copy link
Contributor

@lucifercr07 Sure, thanks! :)

Requirements:

  • Do NOT send a chat email if the previous message is less than an hour ago.
  • Threshold is configurable in application.properties (app.mail.chat.min-threshold).

Hints:

  • Do it in MessageService
  • Don't forget unit tests

@Nonononoki
Copy link
Contributor

@lucifercr07 Any progress on this topic? Otherwise I will start working on this.

@andresousadotpt
Copy link

@Nonononoki if @lucifercr07 don't want I would like to work on it :) (My first open-source contribution :D)

@lucifercr07
Copy link
Contributor

@andresousadotpt please pick it up, have been busy with other projects wouldn't be able to work on this currently. Thanks.

@andresousadotpt
Copy link

I will be getting on this by friday :)

@Nonononoki
Copy link
Contributor

@andresousadotpt I already did some work with this commit 7fc3661

@andresousadotpt
Copy link

Oh @Nonononoki then do you need help in other issues? You can keep working on this haha :)

@Nonononoki
Copy link
Contributor

@andresousadotpt Added a new feature ticket #413, feel free to work on it :)

Closing this issue now.

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

4 participants