Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hooking for Talk Group sync? #178

Open
Dubidubiduu opened this issue Mar 22, 2022 · 3 comments
Open

Hooking for Talk Group sync? #178

Dubidubiduu opened this issue Mar 22, 2022 · 3 comments

Comments

@Dubidubiduu
Copy link

Hey there,

can you have a look into nextcloud/spreed#7039?

Is there anything I can check? From admin backend the user is in the cloud and has the correct groups...

Best

@ovesco
Copy link

ovesco commented Mar 27, 2022

Hey,

I have the exact same problem. It is complicated as it depends on what database system you have, if there is a possibility to setup a listener and so on.

In my case I manually forked this library and implemented a small controller exposing a route which triggers the group listeners, called by my "main" system (where i manage users and groups) when a change is detected. I can help you if needed.

@Dubidubiduu
Copy link
Author

Thanks for this answer.

Maybe you can link to this fork, for me and others.

But actually I don't want to do something for my own or adopt your way, because I think it just worked in the past?!

I get the data from a wordpress/civicrm VIEW at another server. Nextcloud itself runs on mariadb, sync works, it's just this Talk Group syny that doesn't.

@ovesco
Copy link

ovesco commented Apr 3, 2022

Yes that's because when Talk creates a group discussion, it actually retrieves the various members of the group at the creation moment and adds them to the discussion.

It also listens to internal nextcloud events (including user added/removed from a group) so that it can update discussion members. Those events are dispatched by Nextcloud when we add/remove a member from a group. The problem is that we'd need the same features from Mariadb, IE triggering a PHP hook when it detects a change in your tables which is complicated...

My fork is the following: https://github.com/sauvabelin/user_sql
You'll be more interested by the following controller (which exposes, in my case, a single route to trigger those events): https://github.com/sauvabelin/user_sql/blob/master/lib/Controller/GroupChangeController.php

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants