chinwag-android/app/src/main/java/com/keylesspalace/tusky/components
Nik Clayton 561eda8482
Remove rxjava from deletestatus API (#3041)
* 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.

* Remove rxjava from the deleteStatus call path

* Emit log messages with the correct tag

* Add another log tag, and lint

* Use TAG in log messages now it's present

* Lint

* Move viewModelScope.launch in to changeRelationshop()

* Use onSuccess/onFailure pair instead of fold

* Return Deferred when deleting statuses
2023-01-10 21:20:00 +01:00
..
account Share and copy menu items for account page (#3120) 2023-01-09 21:08:46 +01:00
announcements respect "animate emojis" setting in emoji picker (#2996) 2022-12-05 19:15:28 +01:00
compose Fix saving changes to statuses when editing (#3103) 2022-12-31 13:04:49 +01:00
conversation show status edits (#3049) 2023-01-02 14:09:18 +01:00
drafts Fix saving changes to statuses when editing (#3103) 2022-12-31 13:04:49 +01:00
followedtags Add view for browsing and unfollowing followed hashtags (#2794) 2022-12-01 19:24:27 +01:00
instanceinfo fix caching of instance defaults and emojis (#2643) 2022-08-07 22:18:53 +02:00
instancemute Fix toolbar for instance list activity. (#2248) 2021-09-28 19:55:30 +02:00
login revert CompatExtensions (#2773) 2022-11-09 19:32:54 +01:00
notifications Fix saving changes to statuses when editing (#3103) 2022-12-31 13:04:49 +01:00
preference Handle preference fragments using the framework (#3090) 2022-12-31 13:02:23 +01:00
report Convert util/{HttpHeaderLink,PairedList,TimestampUtils,ThemeUtils} to Kotlin (#3046) 2022-12-31 13:01:35 +01:00
scheduled Fix saving changes to statuses when editing (#3103) 2022-12-31 13:04:49 +01:00
search Remove rxjava from deletestatus API (#3041) 2023-01-10 21:20:00 +01:00
timeline Improve the actual and perceived speed of thread loading (#3118) 2023-01-09 21:31:31 +01:00
viewthread Improve the actual and perceived speed of thread loading (#3118) 2023-01-09 21:31:31 +01:00