mirror of
https://github.com/pierre42100/ComunicWeb
synced 2025-06-19 12:25:16 +00:00
Can change group conversations visibility
This commit is contained in:
@ -381,6 +381,22 @@ const GroupSettingsPage = {
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Change conversation visibility
|
||||
*
|
||||
* @param {Conversation} conv Information about the target conversation
|
||||
*/
|
||||
changeVisibility: async function (conv) {
|
||||
try {
|
||||
await GroupsInterface.changeGroupConversationVisibility(conv.id, conv.group_min_membership_level);
|
||||
}
|
||||
|
||||
catch(e) {
|
||||
console.error(e)
|
||||
notify(tr("Failed to delete update conversation!"), "danger")
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Delete a conversation
|
||||
*/
|
||||
|
Reference in New Issue
Block a user