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

Participant types #353

Merged
merged 13 commits into from
Jul 17, 2017
Merged

Participant types #353

merged 13 commits into from
Jul 17, 2017

Conversation

nickvergessen
Copy link
Member

@nickvergessen nickvergessen commented Jul 8, 2017

Fix #297

@jancborchardt we need a UI to allow to promote users to moderators, demote them again and in the future also to remove users from a room. Do you have a good idea for a UI here? I think it would be nice if this was possible while being in a call, but it should also work when there is no call atm (to prepare it) and when the user is not part of the current call, which I think makes this a bit tricky. But maybe you have an idea?

When there is a call for participants I would suggest a dropdown on the name of the user, or a little triangle behind it.

@Ivansss what do you think, how should we set the owner on update for group rooms etc. I mean for 1on1 rooms we just set both as owners, when there is only one user in a room it's also easy. But what do we do with public/group rooms where there is more than one user? We don't know which user created it.

@nickvergessen nickvergessen added 2. developing design enhancement feature: api 🛠️ OCS API for conversations, chats and participants labels Jul 8, 2017
@jancborchardt
Copy link
Member

When there is a call for participants I would suggest a dropdown on the name of the user, or a little triangle behind it.

Yup, exactly. :) Clicking on the username should open a popover menu. Just like we already do when screensharing to switch between screens, so we can extend that.

Good question for how we do that before the call. Let's for now just have it in the call, and make sure to remember the roles of people even if they disconnect and reconnect later, or the call is days apart. Ok?

@Ivansss
Copy link
Member

Ivansss commented Jul 9, 2017

But what do we do with public/group rooms where there is more than one user? We don't know which user created it.

Why don't we know that?

If a user create a group room by selecting directly a nextcloud group in the dropdown list, then we know who is doing that action and that user will be the owner.
Same if a user create a public room by clicking "New public call".

If a 1on1 room is upgraded to a group or public room, then the 2 participants of the 1on1 room are kept as the owners of the new group/public room.

@nickvergessen
Copy link
Member Author

No I mean from current system upgraded to new. We don't know which user created a room. :/

@Ivansss
Copy link
Member

Ivansss commented Jul 9, 2017

Oh! I get it now 😄
Since there is no way to guess who was the creator of that already created rooms, I think we should assign a random owner or moderator to that rooms.
We will need a mechanism like that anyways for assigning new moderators when the last owner/moderator leaves a room.

@nickvergessen
Copy link
Member Author

Right, we could make everyone a moderator. That would keep up the current behaviour.

From my idea the only difference between moderators and owners is, that owners can not be removed by moderators.

We will need a mechanism like that anyways for assigning new moderators when the last owner/moderator leaves a room.

Not really, I see two options:

  1. Leave the room unchanged, people can still use it and talk, etc. Just not add more people
  2. Delete the room, also fine by me since it's basically "moderator ended the call". But maybe 1 together with a "delete the call for everyone" option for owner/moderator is the better idea.

@nickvergessen nickvergessen requested a review from Ivansss July 10, 2017 14:23
@nickvergessen nickvergessen added this to the 3.0 (Nextcloud 13) milestone Jul 10, 2017
This was referenced Jul 11, 2017
@nickvergessen nickvergessen force-pushed the participant-types branch 2 times, most recently from de45716 to 0346b02 Compare July 12, 2017 12:52
@nickvergessen
Copy link
Member Author

@Ivansss I woould like to merge this now, and continue with the full participant list in a separate PR

@codecov
Copy link

codecov bot commented Jul 13, 2017

Codecov Report

Merging #353 into master will decrease coverage by 2%.
The diff coverage is 0%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #353      +/-   ##
============================================
- Coverage     14.32%   12.31%   -2.01%     
- Complexity      283      342      +59     
============================================
  Files            20       22       +2     
  Lines          1410     1640     +230     
============================================
  Hits            202      202              
- Misses         1208     1438     +230
Impacted Files Coverage Δ Complexity Δ
lib/Controller/RoomController.php 0% <0%> (ø) 93 <25> (+32) ⬆️
lib/Participant.php 0% <0%> (ø) 5 <5> (?)
lib/Migration/Version2001002Date20170707115443.php 0% <0%> (ø) 7 <7> (?)
lib/Room.php 0% <0%> (ø) 41 <10> (+9) ⬆️
lib/Manager.php 0% <0%> (ø) 45 <0> (+6) ⬆️
appinfo/routes.php 0% <0%> (ø) 0 <0> (ø) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 819d8b9...72dda3f. Read the comment docs.

* one2one calls have two owners
* for group and public calls the creator is the owner

Signed-off-by: Joas Schilling <[email protected]>
* all participants in one2one rooms owners
* all participants in group rooms moderators

Signed-off-by: Joas Schilling <[email protected]>
Signed-off-by: Joas Schilling <[email protected]>
Signed-off-by: Joas Schilling <[email protected]>
Signed-off-by: Joas Schilling <[email protected]>
@Ivansss Ivansss merged commit f6d25f4 into master Jul 17, 2017
@Ivansss Ivansss deleted the participant-types branch July 17, 2017 13:43
marcoambrosini pushed a commit that referenced this pull request Oct 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review design enhancement feature: api 🛠️ OCS API for conversations, chats and participants
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants