parent
7875e7c630
commit
be60155de5
44 changed files with 303 additions and 260 deletions
|
|
@ -193,8 +193,8 @@ class SearchViewModel @Inject constructor(
|
|||
return accountManager.getAllAccountsOrderedByActive()
|
||||
}
|
||||
|
||||
fun muteAccount(accountId: String, notifications: Boolean) {
|
||||
timelineCases.mute(accountId, notifications)
|
||||
fun muteAccount(accountId: String, notifications: Boolean, duration: Int) {
|
||||
timelineCases.mute(accountId, notifications, duration)
|
||||
}
|
||||
|
||||
fun pinAccount(status: Status, isPin: Boolean) {
|
||||
|
|
|
|||
|
|
@ -377,8 +377,8 @@ class SearchStatusesFragment : SearchFragment<Pair<Status, StatusViewData.Concre
|
|||
showMuteAccountDialog(
|
||||
this.requireActivity(),
|
||||
accountUsername
|
||||
) { notifications ->
|
||||
viewModel.muteAccount(accountId, notifications)
|
||||
) { notifications, duration ->
|
||||
viewModel.muteAccount(accountId, notifications, duration)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue