feat(Communities): Add ephemerial notification when request to join was accepted

Part of: #7072
This commit is contained in:
Boris Melnik 2022-09-07 17:48:29 +03:00
parent eb4a7d71c5
commit 6de3466cb2
1 changed files with 1 additions and 0 deletions

View File

@ -730,6 +730,7 @@ method communityJoined*[T](
community.joined): community.joined):
singletonInstance.globalEvents.myRequestToJoinCommunityAcccepted("Community Request Accepted", singletonInstance.globalEvents.myRequestToJoinCommunityAcccepted("Community Request Accepted",
fmt "Your request to join community {community.name} is accepted", community.id) fmt "Your request to join community {community.name} is accepted", community.id)
self.displayEphemeralNotification(fmt "{community.name} membership approved ", "", conf.COMMUNITIESPORTAL_SECTION_ICON, false, EphemeralNotificationType.Success.int, "")
if setActive: if setActive:
self.setActiveSection(communitySectionItem) self.setActiveSection(communitySectionItem)