mirror of
https://gitlab.com/comunic/comunicapiv2
synced 2024-11-22 21:39:22 +00:00
Avoid members to be duplicated
This commit is contained in:
parent
bd7da591d7
commit
a626a69771
@ -21,7 +21,7 @@ export class ConversationsController {
|
|||||||
|
|
||||||
const name = h.postString("name");
|
const name = h.postString("name");
|
||||||
|
|
||||||
const members = h.postNumbersList("users");
|
const members = [...new Set(h.postNumbersList("users"))];
|
||||||
|
|
||||||
// Check if the users exists
|
// Check if the users exists
|
||||||
for (const userID of members) {
|
for (const userID of members) {
|
||||||
|
Loading…
Reference in New Issue
Block a user