Skip to content

Hooking for Talk Group sync? #178

Open

Description

@Dubidubiduu

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

Activity

  1. ovesco commented on Mar 27, 2022

    @ovesco

    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.

  2. Dubidubiduu commented on Mar 27, 2022

    @Dubidubiduu
    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.

  3. ovesco commented on Apr 3, 2022

    @ovesco

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions