1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-26 14:59:22 +00:00

Apply new "canEveryoneAddMembers" policy

This commit is contained in:
Pierre HUBERT 2020-04-26 15:30:29 +02:00
parent 24f5a3e482
commit ca1f94531f

View File

@ -54,10 +54,12 @@ class ConversationsHelper {
"following": settings.following ? "true" : "false" "following": settings.following ? "true" : "false"
}); });
if (settings.isOwner || settings.canEveryoneAddMembers)
request.addString("members", settings.members.join(","));
// Update all conversation settings, if possible // Update all conversation settings, if possible
if (settings.isOwner) { if (settings.isOwner) {
request.addString("name", settings.hasName ? settings.name : "false"); request.addString("name", settings.hasName ? settings.name : "false");
request.addString("members", settings.members.join(","));
request.addBool("canEveryoneAddMembers", settings.canEveryoneAddMembers); request.addBool("canEveryoneAddMembers", settings.canEveryoneAddMembers);
} }