Skip to content

Persistent one-to-one rooms#1591

Merged
nickvergessen merged 9 commits into
masterfrom
feature/noid/locked-one-to-one-rooms
Mar 14, 2019
Merged

Persistent one-to-one rooms#1591
nickvergessen merged 9 commits into
masterfrom
feature/noid/locked-one-to-one-rooms

Conversation

@nickvergessen

@nickvergessen nickvergessen commented Feb 28, 2019

Copy link
Copy Markdown
Member

The idea is to make one-to-one rooms persistent:

  • No more guests allowed
  • You can not add people to it
  • You can only leave it, not delete it

If the second user:

  • leaves: the room is deleted
  • posts a chat message: participant 1 is readded
  • starts a call: participant 1 is readded

This prevents misunderstandings like #1528 and is also more in line with the behaviour of other messengers.

@nickvergessen nickvergessen added 2. developing enhancement feature: api 🛠️ OCS API for conversations, chats and participants labels Feb 28, 2019
@nickvergessen nickvergessen added this to the 💚 Next Major milestone Feb 28, 2019
@nickvergessen
nickvergessen force-pushed the feature/noid/locked-one-to-one-rooms branch from c5d44a6 to 24bd71a Compare March 1, 2019 10:29
@nickvergessen
nickvergessen marked this pull request as ready for review March 1, 2019 10:34
@nickvergessen
nickvergessen force-pushed the feature/noid/locked-one-to-one-rooms branch from 24bd71a to cc25c85 Compare March 1, 2019 10:37
@nickvergessen

Copy link
Copy Markdown
Member Author

@Ivansss @mario There is a new capability locked-one-to-one with a good explanation in docs/apiv1.md: https://github.com/nextcloud/spreed/pull/1591/files#diff-c64b0a0d2d21bf78e238ccb4d50fc0e6

@danxuliu danxuliu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moderators can no longer leave a public room in which they are the only participants; see https://drone.nextcloud.com/nextcloud/spreed/1684/56 Is that on purpose?

Besides that, I will take care of the acceptance tests.

@nickvergessen

Copy link
Copy Markdown
Member Author

Moderators can no longer leave a public room in which they are the only participants; see https://drone.nextcloud.com/nextcloud/spreed/1684/56 Is that on purpose?

That is from #1588 but yeah I will fix it here

Besides that, I will take care of the acceptance tests.

No, I will do this.

@danxuliu

danxuliu commented Mar 1, 2019

Copy link
Copy Markdown
Member

Moderators can no longer leave a public room in which they are the only participants; see https://drone.nextcloud.com/nextcloud/spreed/1684/56 Is that on purpose?

That is from #1588 but yeah I will fix it here

I think that it was broken in this pull request; in #1588 they worked fine (the remove tests; the sharees tests yes, I think that they were broken in #1588).

Besides that, I will take care of the acceptance tests.

No, I will do this.

OK, but keep in mind:

@nickvergessen
nickvergessen force-pushed the feature/noid/locked-one-to-one-rooms branch from ba9631a to b6c73f3 Compare March 1, 2019 12:56
@nickvergessen

Copy link
Copy Markdown
Member Author
  • Failure in room-shares is unrelated; it seems to be a race condition or something like that

OK

Ah, I didnt get how that one happens :P

Yes it can, I fixed it.

@danxuliu

danxuliu commented Mar 1, 2019

Copy link
Copy Markdown
Member

Failure in conversation:57 can not be properly fixed until #1594 is in, because once it is fixed for the changes in this pull request it will still fail until #1594 is merged

Yes it can, I fixed it.

OK, wrong wording on my part; I meant that even if properly fixed the test will not pass until #1594 is merged and this pull request rebased.

@nickvergessen
nickvergessen force-pushed the feature/noid/locked-one-to-one-rooms branch from e7ddef8 to c843f90 Compare March 5, 2019 07:07
@nickvergessen
nickvergessen requested a review from danxuliu March 6, 2019 09:32
* No more guests allowed
* You can not add people to it
* You can only leave it, not delete it

Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
@nickvergessen
nickvergessen force-pushed the feature/noid/locked-one-to-one-rooms branch from c843f90 to a134976 Compare March 14, 2019 14:41
@nickvergessen
nickvergessen merged commit 529f7c2 into master Mar 14, 2019
@nickvergessen
nickvergessen deleted the feature/noid/locked-one-to-one-rooms branch March 14, 2019 19:23
@nickvergessen nickvergessen mentioned this pull request Apr 10, 2019
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement feature: api 🛠️ OCS API for conversations, chats and participants

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants