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

One participant message #4528

Closed
wants to merge 5 commits into from

Conversation

patidars
Copy link
Contributor

@patidars patidars commented Aug 8, 2019

Added a way to display message like “Please wait for others to join”.
Exposed an optional props from mobile native platform called ‘onlyOneParticipantMessage’. If we pass this prop from native(android/iOS) and there is only one participant in conference then this message will get displayed. If there are more than one participant in conference then this message will not get display.
This could be a welcome message which can tell user to be on conference and wait until others join.

@jitsi-jenkins
Copy link

Hi, thanks for your contribution!
If you haven't already done so, could you please make sure you sign our CLA (https://jitsi.org/icla for individuals and https://jitsi.org/ccla for corporations)? We would unfortunately be unable to merge your patch unless we have that piece :(.

# Conflicts:
#	react/features/base/participants/components/ParticipantView.native.js
@patidars
Copy link
Contributor Author

patidars commented Aug 8, 2019

I have signed CLA.
Thanks

@patidars
Copy link
Contributor Author

@damencho @saghul
Can you please review this PR.

@saghul
Copy link
Member

saghul commented Aug 16, 2019

Hi there!

First, thanks for walking the extra mile here and making the PR work for both iOS and Android from the get go.

While I entertain the idea behind this patch, I'm not very fond of the implementation. We generally don't want to get text directly from props and render it, because it wouldn't be internationalized. So here is a proposal!

  • add a new boolean config option: showSingleParticipantMessage (default to false)
  • Put the text that should be displayed in main.json, with the other texts
  • The APIs would only set it to true or false (this could even be done with a feature flag on mobile)

This way the text can be translated and every app doesn't need to do it on their own, should they want to use this feature.

@patidars
Copy link
Contributor Author

@saghul
Thanks for reviewing PR.

  • I have added flag to enable single participant message(default to false).
  • Added default message in main.json which get display if condition meet.
  • We are still able to pass customised display message , if we get message from native then it will get display otherwise default message will get displayed.

Let me know if anything else you want to modify/add.
Thanks

@stale
Copy link

stale bot commented Nov 17, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix Issue won't be fixed label Nov 17, 2019
@saghul
Copy link
Member

saghul commented Nov 19, 2019

Sorry I drropped the ball on this one :-/ I took another look and AFAIS the native parts still take the string. Now that the flag is implemented you should be able to drop all that code.

@stale stale bot removed the wontfix Issue won't be fixed label Nov 19, 2019
@patidars
Copy link
Contributor Author

@saghul
Thanks,
This native part will be an additional feature, which will allow others to customize message. If we don't send customized message to SDK then default message will get display.

@saghul
Copy link
Member

saghul commented Nov 20, 2019

@patidars That is not something I'm keen on merging since it bypasses all forms of translation. If you want different messages you can alwaysmodify main.json and make a custom build.

@stale
Copy link

stale bot commented Feb 18, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix Issue won't be fixed label Feb 18, 2020
@saghul saghul closed this Feb 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix Issue won't be fixed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants