Message queuing : expose sending queue status on matrix client.

This commit is contained in:
ganfra 2024-06-05 18:09:36 +02:00
parent 431f7a4182
commit 41e5a6dd40
3 changed files with 21 additions and 4 deletions

View file

@ -115,4 +115,10 @@ interface MatrixClient : Closeable {
* connectivity is back on the device.
*/
suspend fun enableSendingQueue(enable: Boolean)
/**
* Returns the current status of the sending queue as a [StateFlow].
* If true, the sending queue is enabled.
*/
fun sendingQueueStatus(): StateFlow<Boolean>
}