SPARK-2119: pre-approve contact that being added

This commit is contained in:
Sergey Ponomarev
2026-07-14 14:25:20 +03:00
parent 323035e9c3
commit d5cf2fa7e1

View File

@ -529,7 +529,7 @@ public class RosterDialog implements ActionListener {
if (isSubscribed) {
try {
roster.createItemAndRequestSubscription(jid, nickname, new String[]{group});
roster.preApproveAndCreateEntry(jid, nickname, new String[]{group});
}
catch (XMPPException | SmackException | InterruptedException e) {
Log.error("Unable to add new entry " + jid, e);