marc0shi, seems like getRoomMembers() is building the wrong IQ, `<item/>` is missing the `affiliation="member"` attribute. I'm trying to add it but can't get it right. This is what I did: ```diff --git a/src/protocol/xep0045.ts b/src/protocol/xep0045.ts
index 082efa1..2fb1298 100644
--- a/src/protocol/xep0045.ts
+++ b/src/protocol/xep0045.ts
@@ -250,8 +250,8 @@ const Protocol: DefinitionOptions[] = [
},
{
element: 'query',
- fields: {
- affiliation: attribute('affiliation', 'member'),
+ fields: {
+ affiliation: childAttribute(null, 'item', 'affiliation', 'member')
},
namespace: NS_MUC_ADMIN,
path: 'iq.muc',
```
marc0sany help/hint would be really appreciated 🙂
marc0sthanks!
Lancei'll take a look into that today. thanks for reporting it!
marc0sthanks Lance
marc0sI tried to fix it myself, but not sure I figured it out correctly how to add an attribute to the jxt definitions 😕
Lanceyou're calling getRoomMembers() without arguments, right?
LancegetRoomMembers({ affiliation: 'member' }) should do the trick. i can make that be the default value if nothing is passed
Lancenot in jxt, but in the getRoomMembers method
marc0s> you're calling getRoomMembers() without arguments, right?
yes
Lanceok, im going to change the default arg value to be { affiliation: 'member' }. that matches expectations instead of the {} i had in there
Lancethat method can query by either affiliation or role, not just affiliation=member