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

Conversation creation modification #4250

Merged
merged 5 commits into from
Sep 23, 2024
Merged

Conversation

sowjanyakch
Copy link
Collaborator

Resolves #4249

This PR implements:

  1. Hide Delete button in the new conversation screen and show it only when conversation avatar is set.
  2. Single line textfield for conversation name.
  3. Make conversation avatar sustain configuration changes.

🚧 TODO

  • ...

🏁 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?)

@sowjanyakch sowjanyakch self-assigned this Sep 19, 2024
@sowjanyakch sowjanyakch force-pushed the conversation_creation_modification branch 2 times, most recently from 93e643b to 38e07e0 Compare September 19, 2024 13:26
@sowjanyakch
Copy link
Collaborator Author

/backport to stable-20.0

@@ -32,13 +32,20 @@ class ConversationCreationViewModel @Inject constructor(
val selectedParticipants: StateFlow<List<AutocompleteUser>> = _selectedParticipants
private val roomViewState = MutableStateFlow<RoomUIState>(RoomUIState.None)

private val selectedImageUri = MutableStateFlow<Uri?>(null)
val selectedImageUriState: StateFlow<Uri?> = selectedImageUri
Copy link
Collaborator

Choose a reason for hiding this comment

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

mutable property should be prefixed with an underscore (_) and public val should be the same name without underscore:

private val _selectedImageUri = ...
val selectedImageUri StateFlow<Uri?> = _selectedImageUri

Copy link
Contributor

Codacy

Lint

TypemasterPR
Warnings8696
Errors131131

SpotBugs

CategoryBaseNew
Bad practice66
Correctness1111
Dodgy code7979
Internationalization33
Malicious code vulnerability33
Performance66
Security11
Total109109

Lint increased!

Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
@mahibi mahibi force-pushed the conversation_creation_modification branch from 93b37ad to 8bf9e35 Compare September 23, 2024 14:44
@mahibi mahibi merged commit 3b09da7 into master Sep 23, 2024
12 of 16 checks passed
@mahibi mahibi deleted the conversation_creation_modification branch September 23, 2024 14:45
Copy link
Contributor

APK file: https://www.kaminsky.me/nc-dev/android-artifacts/4250-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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improvements for Conversation Creation Activity
2 participants