fix: membership requests dissapearing on a community update
Fixes #3315
This commit is contained in:
parent
7c812c0961
commit
b4a209e17c
|
@ -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:
|
||||||
|
|
|
@ -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.}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue