remove some unused code (#4776)
This commit is contained in:
parent
bc397e993d
commit
fc52074dcd
6 changed files with 4 additions and 28 deletions
|
|
@ -1160,7 +1160,7 @@ class MainActivity : BottomSheetActivity(), ActionButtonActivity, MenuProvider {
|
|||
|
||||
private fun fetchAnnouncements() {
|
||||
lifecycleScope.launch {
|
||||
mastodonApi.listAnnouncements(false)
|
||||
mastodonApi.announcements()
|
||||
.fold(
|
||||
{ announcements ->
|
||||
unreadAnnouncementsCount = announcements.count { !it.read }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue