feat: add raw requests for modifying expiry and getting expiries

This commit is contained in:
0x330a
2023-01-20 15:58:04 +11:00
parent edb5ff09e9
commit 378601afa5
4 changed files with 94 additions and 1 deletions

View File

@@ -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 ->