mirror of
https://github.com/oxen-io/session-android.git
synced 2025-10-18 07:14:01 +00:00
feat: add raw requests for modifying expiry and getting expiries
This commit is contained in:
@@ -218,6 +218,23 @@ class HomeActivity : PassphraseRequiredActionBarActivity(),
|
||||
.onEach(globalSearchViewModel::postQuery)
|
||||
.collect()
|
||||
}
|
||||
// launch(IO) {
|
||||
// val publicKey = TextSecurePreferences.getLocalNumber(this@HomeActivity) ?: return@launch
|
||||
// // do a expire
|
||||
// try {
|
||||
// val promise = SnodeAPI.alterTtl(
|
||||
// listOf(
|
||||
// "message hashes"
|
||||
// ),
|
||||
// some long in the future,
|
||||
// publicKey
|
||||
// )
|
||||
// val result = promise.get()
|
||||
// Log.d("TTL", "ttl result: $result")
|
||||
// } catch (e: Exception) {
|
||||
// Log.e("TTL", "Expiry didn't work", e)
|
||||
// }
|
||||
// }
|
||||
// Get group results and display them
|
||||
launch {
|
||||
globalSearchViewModel.result.collect { result ->
|
||||
|
Reference in New Issue
Block a user