Added missing attribute to community participant removal (#2004)
This commit is contained in:
@@ -288,7 +288,7 @@ export const makeCommunitiesSocket = (config: SocketConfig) => {
|
|||||||
const result = await communityQuery(jid, 'set', [
|
const result = await communityQuery(jid, 'set', [
|
||||||
{
|
{
|
||||||
tag: action,
|
tag: action,
|
||||||
attrs: {},
|
attrs: action === 'remove' ? { linked_groups: 'true' } : {},
|
||||||
content: participants.map(jid => ({
|
content: participants.map(jid => ({
|
||||||
tag: 'participant',
|
tag: 'participant',
|
||||||
attrs: { jid }
|
attrs: { jid }
|
||||||
|
|||||||
Reference in New Issue
Block a user