mirror of
https://github.com/igniterealtime/Spark.git
synced 2025-12-01 12:27:58 +00:00
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:
@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user