Skip to content

Commit

Permalink
Disabled storage of errors for sent PubSub notifications #mam-77
Browse files Browse the repository at this point in the history
  • Loading branch information
hantu85 committed Oct 3, 2022
1 parent 93300ee commit c8d50a3
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,12 @@ public boolean willArchive(Packet packet, JID buddyJid, Settings settings, Suppl
return false;
}
}


// do not store errors for sent PubSub notifications
if (packet.getType() == StanzaType.error && packet.getElemName() == Message.ELEM_NAME &&
packet.getElemChild("event", "http://jabber.org/protocol/pubsub#event") != null) {
return false;
}

if (settings.archiveOnlyForContactsInRoster()) {
// to and from should already be set at this point
Expand Down

0 comments on commit c8d50a3

Please sign in to comment.