nvonahsen / jitsi-token-moderation-plugin

Lua plugin for jitsi which determines whether users are moderator or not based on token contents
MIT License
167 stars 96 forks source link

RocketChat integration #18

Open laliluna opened 3 years ago

laliluna commented 3 years ago

I created this pull request in rocket chat, so that the roles are included in the ticket.

https://github.com/RocketChat/Rocket.Chat/pull/20382

RocketChat has a different structure and it would make their token unelegant, if I added the moderator flag directly to the body. The roles will be included in body["context"]["user"]["roles"] as at least empty table.

Even if the pull request is accepted, it would require changes. I am unexperienced with lua plugins. Is there a way to customize which field to use?

Cheers Sebastian