chinwag-android/app/src/main/java/com/keylesspalace/tusky/network
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
..
FilterModel.kt Parse html tags out of status content before applying filters. (#2713) 2022-10-14 20:03:19 +02:00
InstanceSwitchAuthInterceptor.kt add test for InstanceSwitchAuthInterceptor and convert it to Kotlin (#2596) 2022-06-30 21:25:44 +02:00
MastodonApi.kt Remove rxjava from API calls used by AccountViewModel::changeRelationship() (#3008) 2022-12-28 19:06:31 +01:00
MediaUploadApi.kt Add UI for image-attachment "focus" (#2620) 2022-09-21 20:28:06 +02:00
ProgressRequestBody.java Upgrade to AndroidX, move to MaterialComponents theme (#953) 2018-12-17 15:25:35 +01:00