Skip to content
This repository was archived by the owner on May 5, 2021. It is now read-only.

Commit 94e437b

Browse files
Merge pull request SORMAS-Foundation#3284 from hzi-braunschweig/#3212Non-active-user-accounts-should-not-get-notifications
SORMAS-Foundation#3212 block messages to be sent to inactive users
2 parents e05849a + d7ec6cb commit 94e437b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sormas-backend/src/main/java/de/symeda/sormas/backend/common/MessagingService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public void sendMessage(User recipient, MessageSubject subject, String messageCo
8888
throws NotificationDeliveryFailedException {
8989

9090
// Don't send notifications to users that initiated an action
91-
if (recipient.equals(userService.getCurrentUser())) {
91+
if (recipient.equals(userService.getCurrentUser()) || !recipient.isActive()) {
9292
return;
9393
}
9494
// Don't send notifications if the feature is disabled for the current MessageSubject

0 commit comments

Comments
 (0)