SPARK-2149: Prevent notification from popping up on every presence change

Notifications (when enabled) should online occur when a user that was previously online goes offline, or the other way around.
This commit is contained in:
Guus der Kinderen
2020-08-19 09:49:13 +02:00
parent d1f8ec9dd3
commit 4c0c20a26e

View File

@ -106,7 +106,7 @@ public class NotificationPlugin implements Plugin, StanzaListener {
}
BareJid bareJid = jid.asBareJid();
boolean isOnline = onlineUsers.contains(jid);
boolean isOnline = onlineUsers.contains(bareJid);
if (presence.isAvailable()) {
if (preferences.isOnlineNotificationsOn()) {