1
0
mirror of https://github.com/tuskyapp/Tusky synced 2024-12-13 01:26:26 +01:00
Tusky-App-Android/app
Nik Clayton a21f2fadf9
Remove rxjava from API calls used by AccountViewModel::changeRelationship() (#3008)
* Remove rxjava from API calls used by AccountListFragment

* Remove rxjava from API calls used by AccountViewModel::changeRelationship()

The affected API functions are also called from

- ReportViewModel.kt
- SearchViewModel.kt
- AccountListFragment.kt
- SFragment.java
- TimelineCases.kt

so they have also been updated.

This change requires bridging from Java code to Kotlin `suspend` functions,
by creating wrappers for the `mute` and `block` functions that can be
called from Java and create a coroutine scope.

I've deliberately made this fairly ugly so that it sticks out and can be
removed later.

* Use "Throwable" type and name

* Delete 46.json

Not sure where this came from.

* Emit log messages with the correct tag

* Add another log tag, and lint

* Move viewModelScope.launch in to changeRelationshop()
2022-12-28 19:06:31 +01:00
..
schemas/com.keylesspalace.tusky.db.AppDatabase Status: Display indicators of edited posts (#2935) 2022-12-03 12:15:54 +01:00
src Remove rxjava from API calls used by AccountViewModel::changeRelationship() (#3008) 2022-12-28 19:06:31 +01:00
.gitignore
build.gradle replace Manifest package with Gradle namespace (#3007) 2022-12-06 20:32:26 +01:00
proguard-rules.pro