reset pending subscription request when receiving roster update

This commit is contained in:
Daniel Gultsch 2016-02-23 16:14:55 +01:00
parent 20eebe638b
commit 0298f0181e
1 changed files with 2 additions and 0 deletions

View File

@ -382,11 +382,13 @@ public class Contact implements ListItem, Blockable {
this.resetOption(Options.TO);
this.setOption(Options.FROM);
this.resetOption(Options.PREEMPTIVE_GRANT);
this.resetOption(Options.PENDING_SUBSCRIPTION_REQUEST);
break;
case "both":
this.setOption(Options.TO);
this.setOption(Options.FROM);
this.resetOption(Options.PREEMPTIVE_GRANT);
this.resetOption(Options.PENDING_SUBSCRIPTION_REQUEST);
break;
case "none":
this.resetOption(Options.FROM);