-
-
Notifications
You must be signed in to change notification settings - Fork 250
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
Archived Conversations 🗃️ #4333
Conversation
Signed-off-by: rapterjet2004 <[email protected]>
Signed-off-by: rapterjet2004 <[email protected]>
Signed-off-by: rapterjet2004 <[email protected]>
app/src/main/java/com/nextcloud/talk/conversationinfo/ConversationInfoActivity.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/nextcloud/talk/conversationinfo/ConversationInfoActivity.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/nextcloud/talk/conversationinfo/viewmodel/ConversationInfoViewModel.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/nextcloud/talk/conversationinfo/viewmodel/ConversationInfoViewModel.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/nextcloud/talk/conversationinfo/viewmodel/ConversationInfoViewModel.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/nextcloud/talk/conversationlist/ConversationsListActivity.kt
Outdated
Show resolved
Hide resolved
@@ -200,6 +202,56 @@ class ConversationInfoViewModel @Inject constructor( | |||
}) | |||
} | |||
|
|||
fun archiveConversation(user: User, token: String) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nothing to implement for now (can be done in followup PR if you are interested), but just as a sidenote:
It would be nice to have the archive/unarchive button also available in the conversations context menu. This would lead to the question how duplicated code can be avoided to call the repository.
In the long term we should use "UseCases" for it to make this more reusable. See explanations at https://medium.com/@ami0275/mvvm-clean-architecture-pattern-in-android-with-use-cases-eff7edc2ef76
But as said, should be done later on and not in this PR. So for now i suggest to don't implement it in the context menu.
@@ -2,7 +2,7 @@ | |||
"formatVersion": 1, | |||
"database": { | |||
"version": 11, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the databse version must be bumped and a database migration must be added to alter the affected table
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this was merged too fast. there should have been a 12.json file instead to modify 11.json
should be fixed with #4417
Signed-off-by: rapterjet2004 <[email protected]>
Signed-off-by: rapterjet2004 <[email protected]>
Signed-off-by: rapterjet2004 <[email protected]>
Signed-off-by: rapterjet2004 <[email protected]>
APK file: https://www.kaminsky.me/nc-dev/android-artifacts/4333-talk.apk |
no backport by intention.. |
🏁 Checklist
/backport to stable-xx.x