mirror of
https://github.com/igniterealtime/Spark.git
synced 2026-08-18 11:10:02 +00:00
SPARK-2119: pre-approve contact that being added
This commit is contained in:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user