Skip to content

Feature/4712/add participant to1to1 #4826

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

Merged
merged 15 commits into from
Apr 17, 2025

Conversation

mahibi
Copy link
Collaborator

@mahibi mahibi commented Mar 27, 2025

resolve #4712

Screenshots

How to test

  • In web, add participants to 1-to-1 in a chat -> push notification should appear on android
  • In web, add participants to 1-to-1 in a call -> call should switch on android
  • In android, go to 1to1 conversation - conversation info - In particiapnts section, click "Start group chat" -> Chat is created and opened on android.

TODO

  • check param values for CreateRoomRequest ?
  • check capability conversation-creation-all
  • align room name (sorting of participants?)
    • main actors first makes sense to me
  • implement add participants picker for call screen. Will be done in a followup PR (In "worst case" it requires a service implementation for calls..)

🏁 Checklist

  • ⛑️ Tests (unit and/or integration) are included or not needed
  • 🔖 Capability is checked or not needed
  • 🔙 Backport requests are created or not needed: /backport to stable-xx.x
  • 📅 Milestone is set
  • 🌸 PR title is meaningful (if it should be in the changelog: is it meaningful to users?)

@mahibi mahibi added this to the 22.0.0 milestone Mar 27, 2025
@mahibi mahibi self-assigned this Mar 27, 2025
@mahibi mahibi force-pushed the feature/4712/addParticipantTo1to1 branch from 9c91f1f to 3d2153b Compare March 27, 2025 12:05
@mahibi
Copy link
Collaborator Author

mahibi commented Mar 31, 2025

Note to myself for testing (with HPB):

json for curl request (replace objectId with old room token):

{
  "objectType": "extend_conversation",
  "objectId": "5873149015",
  "roomName": "Hi",
  "participants": {
    "users": [
      "admin",
      "user1",
      "user2"
    ]
  }
}

curl:

curl -k -u admin:admin https://nextcloudlocal/ocs/v2.php/apps/spreed/api/v4/room -X POST -H 'OCS-APIRequest: true' -d @extend.json -H 'Content-Type: application/json'

@mahibi mahibi force-pushed the feature/4712/addParticipantTo1to1 branch from 6e41dad to 9ca8df7 Compare April 11, 2025 13:24
@mahibi mahibi added the 3. to review Waiting for reviews label Apr 11, 2025
@mahibi mahibi marked this pull request as ready for review April 11, 2025 13:28
mahibi added 14 commits April 14, 2025 11:03
snackbars disaapear with the switch to a different screen. Toasts survive the switch so they are visible during the activities switch

Signed-off-by: Marcel Hibbe <[email protected]>
no action for now

Signed-off-by: Marcel Hibbe <[email protected]>
Signed-off-by: Marcel Hibbe <[email protected]>
to be discussed: does it make sense to show a dialog instead? At least when it's created via 1:1 conversation

Signed-off-by: Marcel Hibbe <[email protected]>
Signed-off-by: Marcel Hibbe <[email protected]>
sort users so original users come first when creating new conversation from 1:1 conversation

Signed-off-by: Marcel Hibbe <[email protected]>
@mahibi mahibi force-pushed the feature/4712/addParticipantTo1to1 branch from 9ca8df7 to 472f21e Compare April 14, 2025 10:07
@mahibi mahibi force-pushed the feature/4712/addParticipantTo1to1 branch from 472f21e to a1c7e37 Compare April 14, 2025 10:35
Copy link
Contributor

APK file: https://www.kaminsky.me/nc-dev/android-artifacts/4826-talk.apk

qrcode

To test this change/fix you can simply download above APK file and install and test it in parallel to your existing Nextcloud Talk app.

Copy link
Contributor

Codacy

Lint

TypemasterPR
Warnings9898
Errors99

SpotBugs

CategoryBaseNew
Bad practice66
Correctness222117
Dodgy code7171
Internationalization33
Malicious code vulnerability33
Performance44
Security11
Total310205

@sowjanyakch
Copy link
Contributor

@mahibi - tested this.
Some minor comments - Sometimes user name appears twice in the conversation name (same on web). When a user is removed from the conversation, we can update the conversation name (remove the participant from conversation name).

@sowjanyakch sowjanyakch merged commit a9090d4 into master Apr 17, 2025
17 checks passed
@sowjanyakch sowjanyakch deleted the feature/4712/addParticipantTo1to1 branch April 17, 2025 10:47
@mahibi
Copy link
Collaborator Author

mahibi commented Apr 17, 2025

Sometimes user name appears twice in the conversation name (same on web).

I can only reproduce this on web (fyi @Antreesy )
But i can not reproduce when i create the conversation on android

When a user is removed from the conversation, we can update the conversation name (remove the participant from conversation name).

that won't be done

@Antreesy
Copy link

Thanks for noticing! Addressed in nextcloud/spreed#14897

@mahibi mahibi modified the milestones: 22.0.0, 21.1.0 May 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews
Projects
None yet
Development

Successfully merging this pull request may close these issues.

👥 Adding participants to one-to-one calls - 🤖 Android
3 participants