From ace7b4459578ad1ab348f5622b67f587cb7cbe39 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Sun, 26 Apr 2020 14:29:22 +0200 Subject: [PATCH] Add the "allowEveryoneToAddMembers" setting when creating the conversation --- lib/helpers/conversations_helper.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/helpers/conversations_helper.dart b/lib/helpers/conversations_helper.dart index 9b4ce2b..41603d1 100644 --- a/lib/helpers/conversations_helper.dart +++ b/lib/helpers/conversations_helper.dart @@ -36,8 +36,8 @@ class ConversationsHelper { await APIRequest(uri: "conversations/create", needLogin: true, args: { "name": settings.hasName ? settings.name : "false", "follow": settings.following ? "true" : "false", - "users": settings.members.join(",") - }).exec(); + "users": settings.members.join(","), + }).addBool("canEveryoneAddMembers", settings.canEveryoneAddMembers).exec(); if (response.code != 200) return -1;