Closed jacobeva closed 1 year ago
To follow
I wrote a simple patch following that idea, so you can try it and comment if it works or has some drawback.
This patch only sets default rooms when the client sets presence, client logins using an external auth method, and the private storage is empty. Hopefully that will have minimum performance impact and shouldn't have drawbacks.
@jacobeva: Have you looked the @badlop patch?
My apologies, I've been busy as of late! I will attempt to apply this patch now.
LGTM!
Ok, patch applied to the module.
When a new account is created in ejabberd via the LDAP authentication mechanism, mod_default_rooms does not trigger, as the register API hook is never called. Therefore, it may be more suitable to use another hook from ejabberd which can support this use case?
In an email to me, Holger described potentially triggering this module each time a user authenticates (but this is hacky and may cause the deletion of extra bookmarks?).
Any thoughts on what could be done?