Can change group conversations visibility

This commit is contained in:
2021-04-05 15:27:56 +02:00
parent 2fb3c7e789
commit 5073c4e1ba
3 changed files with 38 additions and 1 deletions

View File

@ -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
*/