Message queuing : branches the enable sending queue mechanism.

This commit is contained in:
ganfra 2024-06-06 17:09:52 +02:00
parent 7100a9d619
commit 026a2cd33a
5 changed files with 74 additions and 4 deletions

View file

@ -552,8 +552,9 @@ class RustMatrixClient(
}.distinctUntilChanged()
}
override suspend fun enableSendingQueue(enable: Boolean) = withContext(sessionDispatcher) {
client.enableSendingQueue(enable)
override suspend fun setSendingQueueEnabled(enabled: Boolean) = withContext(sessionDispatcher) {
Timber.i("setSendingQueueEnabled($enabled)")
client.enableSendingQueue(enabled)
}
override fun sendingQueueStatus(): StateFlow<Boolean> = mxCallbackFlow {