1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2025-06-20 08:25:16 +00:00

Automatically update conversations membership based on group membership update

This commit is contained in:
2021-04-05 14:18:45 +02:00
parent 7f81bc21c6
commit fbc1a59829
3 changed files with 45 additions and 9 deletions

View File

@ -314,8 +314,6 @@ pub fn send_request(r: &mut HttpRequestHandler) -> RequestResult {
following: true,
})?;
// TODO : if the user has already the "member" level, gives him access to conversations
// Send a notification, if required
if matches!(group.registration_level, GroupRegistrationLevel::MODERATED_REGISTRATION) {
notifications_helper::create_group_membership_notification(r.user_id_ref()?, None,