fix(communities): Break loop when cancel request was sent

Fixes: #8539
This commit is contained in:
Boris Melnik 2022-12-05 15:23:10 +03:00
parent 32d1d927ef
commit c801c869e6
1 changed files with 2 additions and 1 deletions

View File

@ -1311,10 +1311,11 @@ QtObject:
return
self.myCommunityRequests.delete(i)
self.activityCenterService.parseACNotificationResponse(response)
self.events.emit(SIGNAL_REQUEST_TO_JOIN_COMMUNITY_CANCELED, Args())
return
i.inc()
self.events.emit(SIGNAL_REQUEST_TO_JOIN_COMMUNITY_CANCELED, Args())
except Exception as e:
error "Error canceled request to join community", msg = e.msg