-
Notifications
You must be signed in to change notification settings - Fork 32
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
Limit chatting to users in your group and allow to exclude certain groups #57
Conversation
lib/hooks.php
Outdated
|
||
public function onRemoveUserFromGroup(IGroup $group, IUser $user) | ||
{ | ||
$this->rosterPush->removeRosterItemForUsersInGroup($group, $user->getUID()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO this must only be done when one of the privacy options is enabled and when running on version > 12.0.3
@sualko FYI this is something not for 3.3, it needs to much changes upstream. |
Thanks for the information 👍 |
b04f6fb
to
31c8172
Compare
7e1c07b
to
212aff8
Compare
Codecov Report
@@ Coverage Diff @@
## master #57 +/- ##
============================================
+ Coverage 81.17% 83.22% +2.04%
+ Complexity 274 272 -2
============================================
Files 29 31 +2
Lines 951 1067 +116
============================================
+ Hits 772 888 +116
Misses 179 179
Continue to review full report at Codecov.
|
c42ca77
to
3ff54e2
Compare
37071b0
to
7aafe05
Compare
Hi, I pretty urgent need the feature "Restrict sharing to own groups". Is there an eta when this feature will be released or in which version this will come? And thanks for the very good work so far with this great app! |
@Schmuuu I'm currently having exams again, I'll finish this PR in approx 3 weeks. |
@Schmuuu Should only a limited group have access to the chat feature, or should they only be able to communicate within the group? The latter can be achieved by setting up an external XMPP server and creating appropriate rules. However, for both cases I do not see a real reason to have this; users can communicate anyway, outside of JSXC (and possible with more side-effects and information leakage). |
Yes, that is what I would like to have. I configured the sharing with: It would just be consistent if I can either configure the chat manually or if the app uses the sharing setting automatically and restricts users to chat with other users in their group only. I have the following situation:
What I would like to achieve:
I hope you agree, that there are just some use cases, where it is just perfect to have the chance to limit chats within a group only. While I'm trying to convince my company to use a full-featured Nextcloud, this would be critical as well. Providing customers the chat feature would be nice, but we would need to hide all the customers from each other, meaning only the users of one customer (one company) can chat with us and each other, but not the users of different customers with each other. |
…group as the current users if enabled
Signed-off-by: Tobia De Koninck <tobia@ledfan.be>
…sts works on fresh db Signed-off-by: Tobia De Koninck <tobia@ledfan.be>
Signed-off-by: Tobia De Koninck <tobia@ledfan.be>
c3bfb9f
to
8bd8215
Compare
Signed-off-by: Tobia De Koninck <tobia@ledfan.be>
…t user containing/removing all users in that group Signed-off-by: Tobia De Koninck <tobia@ledfan.be>
Signed-off-by: Tobia De Koninck <tobia@ledfan.be>
cdb20c1
to
e8136e4
Compare
Signed-off-by: Tobia De Koninck <tobia@ledfan.be>
This PR integrates the changes provided in nextcloud/server#5585 so an admin can limit Chatting in the following two ways, using the Sharing settings in core:
This needs the upstream PR + another (not yet made) PR to make the ContactsStore a public API in Nextcloud, therefore the tests should and will fail on stable12 and master. (https://gist.github.com/LEDfan/6baa61a6d23ed5dff2fac877bc9e2895)
TODO:
Exclude certain groups from chatting
and make sure the roster isn't loaded for this userFixes jsxc/jsxc#306