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.
@@ -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()) {
