Skip to content

Commit

Permalink
Remove pending contact reuests on remote deny, closes #1301
Browse files Browse the repository at this point in the history
  • Loading branch information
tmolitor-stud-tu committed Dec 1, 2024
1 parent 5971e0a commit 6757587
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Monal/Classes/MLIQProcessor.m
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ +(BOOL) processRosterWithAccount:(xmpp*) account andIqNode:(XMPPIQ*) iqNode
DDLogWarn(@"Got roster remove request for MUC, ignoring it (possibly even triggered by us).");
else
{
[[DataLayer sharedInstance] deleteContactRequest:contactObj];
[[DataLayer sharedInstance] removeBuddy:contact[@"jid"] forAccount:account.accountID];
[contactObj removeShareInteractions];
[[MLNotificationQueue currentQueue] postNotificationName:kMonalContactRemoved object:account userInfo:@{@"contact": contactObj}];
Expand Down Expand Up @@ -371,7 +372,7 @@ +(BOOL) processRosterWithAccount:(xmpp*) account andIqNode:(XMPPIQ*) iqNode
andAccount:account.accountID];

NSSet* groups = [NSSet setWithArray:[contactNode find:@"group#"]];
DDLogVerbose(@"Setting following groups: %@ for contact %@", groups, contact[@"jid"]);
DDLogVerbose(@"Setting roster groups for contact %@: ", contact[@"jid"], groups);
[[DataLayer sharedInstance] setGroups:groups
forContact:contact[@"jid"]
inAccount:account.accountID];
Expand Down

0 comments on commit 6757587

Please sign in to comment.