1
0
mirror of https://gitlab.com/comunic/comunicapiv2 synced 2024-11-22 13:29:22 +00:00

Avoid members to be duplicated

This commit is contained in:
Pierre HUBERT 2019-11-30 14:09:05 +01:00
parent bd7da591d7
commit a626a69771

View File

@ -21,7 +21,7 @@ export class ConversationsController {
const name = h.postString("name");
const members = h.postNumbersList("users");
const members = [...new Set(h.postNumbersList("users"))];
// Check if the users exists
for (const userID of members) {