fix: membership requests dissapearing on a community update

Fixes #3315
This commit is contained in:
Richard Ramos 2021-09-07 13:34:52 -04:00 committed by Iuri Matias
parent 7c812c0961
commit b4a209e17c
2 changed files with 4 additions and 1 deletions

View File

@ -253,6 +253,8 @@ QtObject:
self.joinedCommunityList.replaceCommunity(community) self.joinedCommunityList.replaceCommunity(community)
self.joinedCommunitiesChanged() self.joinedCommunitiesChanged()
# Fetch latest requests for community
self.addMembershipRequests(self.pendingRequestsToJoinForCommunity(community.id))
if (community.isMember == true): if (community.isMember == true):
var i = 0 var i = 0
for communityRequest in self.myCommunityRequests: for communityRequest in self.myCommunityRequests:

View File

@ -43,8 +43,9 @@ QtObject:
self.chats.setChats(communityItem.chats) self.chats.setChats(communityItem.chats)
self.categories.setCategories(communityItem.categories) self.categories.setCategories(communityItem.categories)
self.members.setCommunity(communityItem) self.members.setCommunity(communityItem)
self.nbMembersChanged()
self.communityMembershipRequestList.setNewData(communityItem.membershipRequests) self.communityMembershipRequestList.setNewData(communityItem.membershipRequests)
self.nbMembersChanged()
proc activeChanged*(self: CommunityItemView) {.signal.} proc activeChanged*(self: CommunityItemView) {.signal.}